| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049 |
- (function () {
- 'use strict';
- angular.module('ariaNg').constant('aria2AllOptions', {
- // Aria2 Option Defination EXAMPLE:
- // 'option key': {
- // [since: '',] //This option is supported by this or higher aria2 version
- // type: 'string|integer|float|text|boolean|option',
- // [suffix: 'Bytes|Milliseconds|Seconds|Minutes|Hours',]
- // [readonly: true|false,] //default: false
- // [defaultValue: '',]
- // [required: true|false,] //default: false
- // [split: '',] //SUPPORT 'text' type
- // [submitFormat: 'string|array'] //default: string, parameter 'split' is required
- // [showCount: true|false,] //SUPPORT 'text' type, parameter 'split' is required, default: false
- // [options: [],] //SUPPORT 'option' type
- // [min: 0,] //SUPPORT 'integer', 'float'
- // [max: 0,] //SUPPORT 'integer', 'float'
- // [pattern: '']
- // }
- 'gid': {
- type: 'string',
- readonly: true,
- required: true
- },
- 'dir': {
- type: 'string',
- required: true
- },
- 'log': {
- type: 'string',
- required: true
- },
- 'max-concurrent-downloads': {
- type: 'integer',
- defaultValue: '5',
- required: true,
- min: 1
- },
- 'check-integrity': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'continue': {
- type: 'boolean',
- required: true
- },
- 'all-proxy': {
- type: 'string'
- },
- 'all-proxy-user': {
- type: 'string'
- },
- 'all-proxy-passwd': {
- type: 'string'
- },
- 'checksum': {
- type: 'string',
- pattern: '^(md5|sha-(1|224|256|384|512))=[a-zA-Z0-9]+$'
- },
- 'connect-timeout': {
- type: 'integer',
- suffix: 'Seconds',
- defaultValue: '60',
- required: true,
- min: 1,
- max: 600
- },
- 'dry-run': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'lowest-speed-limit': {
- type: 'string',
- suffix: 'Bytes',
- defaultValue: '0',
- required: true,
- pattern: '^(0|[1-9]\\d*(K|k|M|m)?)$'
- },
- 'max-connection-per-server': {
- type: 'integer',
- defaultValue: '1',
- required: true,
- min: 1,
- max: 16
- },
- 'max-file-not-found': {
- type: 'integer',
- defaultValue: '0',
- required: true,
- min: 0
- },
- 'max-tries': {
- type: 'integer',
- defaultValue: '5',
- required: true,
- min: 0
- },
- 'min-split-size': {
- type: 'string',
- suffix: 'Bytes',
- defaultValue: '20M',
- required: true,
- pattern: '^(0|[1-9]\\d*(K|k|M|m)?)$'
- },
- 'netrc-path': {
- type: 'string',
- readonly: true,
- defaultValue: '$(HOME)/.netrc'
- },
- 'no-netrc': {
- type: 'boolean',
- required: true
- },
- 'no-proxy': {
- type: 'text',
- split: ',',
- showCount: true
- },
- 'out': {
- type: 'string'
- },
- 'proxy-method': {
- type: 'option',
- options: ['get', 'tunnel'],
- defaultValue: 'get',
- required: true
- },
- 'remote-time': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'reuse-uri': {
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'retry-wait': {
- type: 'integer',
- suffix: 'Seconds',
- defaultValue: '0',
- required: true,
- min: 0,
- max: 600
- },
- 'server-stat-of': {
- type: 'string'
- },
- 'server-stat-timeout': {
- type: 'integer',
- suffix: 'Seconds',
- readonly: true,
- defaultValue: '86400'
- },
- 'split': {
- type: 'integer',
- defaultValue: '5',
- required: true,
- min: 1
- },
- 'stream-piece-selector': {
- type: 'option',
- options: ['default', 'inorder', 'random', 'geom'],
- defaultValue: 'default',
- required: true
- },
- 'timeout': {
- type: 'integer',
- suffix: 'Seconds',
- defaultValue: '60',
- required: true,
- min: 1,
- max: 600
- },
- 'uri-selector': {
- type: 'option',
- options: ['inorder', 'feedback', 'adaptive'],
- defaultValue: 'feedback',
- required: true
- },
- 'check-certificate': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'true'
- },
- 'http-accept-gzip': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'http-auth-challenge': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'http-no-cache': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'http-user': {
- type: 'string'
- },
- 'http-passwd': {
- type: 'string'
- },
- 'http-proxy': {
- type: 'string'
- },
- 'http-proxy-user': {
- type: 'string'
- },
- 'http-proxy-passwd': {
- type: 'string'
- },
- 'https-proxy': {
- type: 'string'
- },
- 'https-proxy-user': {
- type: 'string'
- },
- 'https-proxy-passwd': {
- type: 'string'
- },
- 'referer': {
- type: 'string'
- },
- 'enable-http-keep-alive': {
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'enable-http-pipelining': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'header': {
- type: 'text',
- split: '\n',
- submitFormat: 'array',
- showCount: true
- },
- 'save-cookies': {
- type: 'string'
- },
- 'use-head': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'user-agent': {
- type: 'string',
- defaultValue: 'aria2/$VERSION'
- },
- 'ftp-user': {
- type: 'string',
- defaultValue: 'anonymous'
- },
- 'ftp-passwd': {
- type: 'string',
- defaultValue: 'ARIA2USER@'
- },
- 'ftp-pasv': {
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'ftp-proxy': {
- type: 'string'
- },
- 'ftp-proxy-user': {
- type: 'string'
- },
- 'ftp-proxy-passwd': {
- type: 'string'
- },
- 'ftp-type': {
- type: 'option',
- options: ['binary', 'ascii'],
- defaultValue: 'binary',
- required: true
- },
- 'ftp-reuse-connection': {
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'ssh-host-key-md': {
- type: 'string'
- },
- 'show-files': {
- type: 'boolean',
- readonly: true
- },
- 'bt-detach-seed-only': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'false'
- },
- 'bt-enable-hook-after-hash-check': {
- since: '1.19.3',
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'bt-enable-lpd': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'bt-exclude-tracker': {
- type: 'text',
- split: ',',
- showCount: true
- },
- 'bt-external-ip': {
- type: 'string'
- },
- 'bt-force-encryption': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'bt-hash-check-seed': {
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'bt-load-saved-metadata': {
- since: '1.33.0',
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'bt-max-open-files': {
- type: 'integer',
- defaultValue: '100',
- required: true,
- min: 1
- },
- 'bt-max-peers': {
- type: 'integer',
- defaultValue: '55',
- required: true,
- min: 0
- },
- 'bt-metadata-only': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'bt-min-crypto-level': {
- type: 'option',
- options: ['plain', 'arc4'],
- defaultValue: 'plain',
- required: true
- },
- 'bt-prioritize-piece': {
- type: 'string'
- },
- 'bt-remove-unselected-file': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'bt-require-crypto': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'bt-request-peer-speed-limit': {
- type: 'string',
- suffix: 'Bytes',
- defaultValue: '50K',
- required: true,
- pattern: '^(0|[1-9]\\d*(K|k|M|m)?)$'
- },
- 'bt-save-metadata': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'bt-seed-unverified': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'bt-stop-timeout': {
- type: 'integer',
- suffix: 'Seconds',
- defaultValue: '0',
- required: true,
- min: 0
- },
- 'bt-tracker': {
- type: 'text',
- split: ',',
- showCount: true
- },
- 'bt-tracker-connect-timeout': {
- type: 'integer',
- suffix: 'Seconds',
- defaultValue: '60',
- required: true,
- min: 1,
- max: 600
- },
- 'bt-tracker-interval': {
- type: 'integer',
- suffix: 'Seconds',
- defaultValue: '0',
- required: true,
- min: 0
- },
- 'bt-tracker-timeout': {
- type: 'integer',
- suffix: 'Seconds',
- defaultValue: '60',
- required: true,
- min: 1,
- max: 600
- },
- 'dht-file-path': {
- type: 'string',
- readonly: true,
- defaultValue: '$HOME/.aria2/dht.dat'
- },
- 'dht-file-path6': {
- type: 'string',
- readonly: true,
- defaultValue: '$HOME/.aria2/dht6.dat'
- },
- 'dht-listen-port': {
- type: 'string',
- readonly: true,
- defaultValue: '6881-6999'
- },
- 'dht-message-timeout': {
- type: 'integer',
- suffix: 'Seconds',
- readonly: true,
- defaultValue: '10'
- },
- 'enable-dht': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'true'
- },
- 'enable-dht6': {
- type: 'boolean',
- readonly: true
- },
- 'enable-peer-exchange': {
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'follow-torrent': {
- type: 'option',
- options: ['true', 'false', 'mem'],
- defaultValue: 'true',
- required: true
- },
- 'listen-port': {
- type: 'integer',
- readonly: true,
- defaultValue: '6881-6999'
- },
- 'max-overall-upload-limit': {
- type: 'string',
- suffix: 'Bytes',
- defaultValue: '0',
- required: true,
- pattern: '^(0|[1-9]\\d*(K|k|M|m)?)$'
- },
- 'max-upload-limit': {
- type: 'string',
- suffix: 'Bytes',
- defaultValue: '0',
- required: true,
- pattern: '^(0|[1-9]\\d*(K|k|M|m)?)$'
- },
- 'peer-id-prefix': {
- type: 'string',
- readonly: true,
- defaultValue: 'A2-$MAJOR-$MINOR-$PATCH-'
- },
- 'peer-agent': {
- since: '1.33.0',
- type: 'string',
- defaultValue: 'aria2/$MAJOR.$MINOR.$PATCH',
- readonly: true
- },
- 'seed-ratio': {
- type: 'float',
- defaultValue: '1.0',
- required: true,
- min: 0
- },
- 'seed-time': {
- type: 'float',
- suffix: 'Minutes',
- required: true,
- min: 0
- },
- 'follow-metalink': {
- type: 'option',
- options: ['true', 'false', 'mem'],
- defaultValue: 'true',
- required: true
- },
- 'metalink-base-uri': {
- type: 'string'
- },
- 'metalink-language': {
- type: 'string'
- },
- 'metalink-location': {
- type: 'string'
- },
- 'metalink-os': {
- type: 'string'
- },
- 'metalink-version': {
- type: 'string'
- },
- 'metalink-preferred-protocol': {
- type: 'option',
- options: ['http', 'https', 'ftp', 'none'],
- defaultValue: 'none',
- required: true
- },
- 'metalink-enable-unique-protocol': {
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'enable-rpc': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'false'
- },
- 'pause-metadata': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'rpc-allow-origin-all': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'false'
- },
- 'rpc-listen-all': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'false'
- },
- 'rpc-listen-port': {
- type: 'integer',
- readonly: true,
- defaultValue: '6800'
- },
- 'rpc-max-request-size': {
- type: 'string',
- suffix: 'Bytes',
- readonly: true,
- defaultValue: '2M'
- },
- 'rpc-save-upload-metadata': {
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'rpc-secure': {
- type: 'boolean',
- readonly: true
- },
- 'allow-overwrite': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'allow-piece-length-change': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'always-resume': {
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'async-dns': {
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'auto-file-renaming': {
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'auto-save-interval': {
- type: 'integer',
- suffix: 'Seconds',
- readonly: true,
- defaultValue: '60'
- },
- 'conditional-get': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'conf-path': {
- type: 'string',
- readonly: true,
- defaultValue: '$HOME/.aria2/aria2.conf'
- },
- 'console-log-level': {
- type: 'option',
- options: ['debug', 'info', 'notice', 'warn', 'error'],
- readonly: true,
- defaultValue: 'notice'
- },
- 'content-disposition-default-utf8': {
- since: '1.31.0',
- type: 'boolean',
- defaultValue: 'false'
- },
- 'daemon': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'false'
- },
- 'deferred-input': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'false'
- },
- 'disable-ipv6': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'false'
- },
- 'disk-cache': {
- type: 'string',
- suffix: 'Bytes',
- readonly: true,
- defaultValue: '16M'
- },
- 'download-result': {
- type: 'option',
- options: ['default', 'full', 'hide'],
- defaultValue: 'default',
- required: true
- },
- 'dscp': {
- type: 'string',
- readonly: true
- },
- 'rlimit-nofile': {
- type: 'string',
- readonly: true
- },
- 'enable-color': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'true'
- },
- 'enable-mmap': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'event-poll': {
- type: 'option',
- options: ['epoll', 'kqueue', 'port', 'poll', 'select'],
- readonly: true
- },
- 'file-allocation': {
- type: 'option',
- options: ['none', 'prealloc', 'trunc', 'falloc'],
- defaultValue: 'prealloc',
- required: true
- },
- 'force-save': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'save-not-found': {
- since: '1.27.0',
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'hash-check-only': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'human-readable': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'true'
- },
- 'keep-unfinished-download-result': {
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'max-download-result': {
- type: 'integer',
- defaultValue: '1000',
- required: true,
- min: 0
- },
- 'max-mmap-limit': {
- since: '1.20.0',
- type: 'string',
- suffix: 'Bytes',
- defaultValue: '9223372036854775807',
- required: true,
- pattern: '^(0|[1-9]\\d*(K|k|M|m)?)$'
- },
- 'max-resume-failure-tries': {
- type: 'integer',
- defaultValue: '0',
- required: true,
- min: 0
- },
- 'min-tls-version': {
- type: 'option',
- options: ['SSLv3', 'TLSv1', 'TLSv1.1', 'TLSv1.2'],
- readonly: true,
- defaultValue: 'TLSv1'
- },
- 'log-level': {
- type: 'option',
- options: ['debug', 'info', 'notice', 'warn', 'error'],
- defaultValue: 'debug',
- required: true
- },
- 'optimize-concurrent-downloads': {
- since: '1.22.0',
- type: 'string',
- defaultValue: 'false'
- },
- 'piece-length': {
- type: 'string',
- suffix: 'Bytes',
- defaultValue: '1M',
- required: true,
- pattern: '^(0|[1-9]\\d*(M|m)?)$'
- },
- 'show-console-readout': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'true'
- },
- 'summary-interval': {
- type: 'integer',
- suffix: 'Seconds',
- readonly: true,
- defaultValue: '60'
- },
- 'max-overall-download-limit': {
- type: 'string',
- suffix: 'Bytes',
- defaultValue: '0',
- required: true,
- pattern: '^(0|[1-9]\\d*(K|k|M|m)?)$'
- },
- 'max-download-limit': {
- type: 'string',
- suffix: 'Bytes',
- defaultValue: '0',
- required: true,
- pattern: '^(0|[1-9]\\d*(K|k|M|m)?)$'
- },
- 'no-conf': {
- type: 'boolean',
- readonly: true
- },
- 'no-file-allocation-limit': {
- type: 'string',
- suffix: 'Bytes',
- defaultValue: '5M',
- required: true,
- pattern: '^(0|[1-9]\\d*(K|k|M|m)?)$'
- },
- 'parameterized-uri': {
- type: 'boolean',
- defaultValue: 'false',
- required: true
- },
- 'quiet': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'false'
- },
- 'realtime-chunk-checksum': {
- type: 'boolean',
- defaultValue: 'true',
- required: true
- },
- 'remove-control-file': {
- type: 'boolean',
- required: true
- },
- 'save-session': {
- type: 'string'
- },
- 'save-session-interval': {
- type: 'integer',
- suffix: 'Seconds',
- readonly: true,
- defaultValue: '0'
- },
- 'socket-recv-buffer-size': {
- since: '1.19.3',
- type: 'string',
- suffix: 'Bytes',
- readonly: true,
- defaultValue: '0'
- },
- 'stop': {
- type: 'integer',
- suffix: 'Seconds',
- readonly: true,
- defaultValue: '0'
- },
- 'truncate-console-readout': {
- type: 'boolean',
- readonly: true,
- defaultValue: 'true'
- }
- }).constant('aria2GlobalAvailableOptions', {
- // Aria2 Setting Page Defination EXAMPLE:
- // 'category key': [
- // 'option key 1', 'option key 2', // more options if possible
- // ]
- basicOptions: [
- 'dir', 'log', 'max-concurrent-downloads', 'check-integrity', 'continue'
- ],
- httpFtpSFtpOptions: [
- 'all-proxy', 'all-proxy-user', 'all-proxy-passwd', 'connect-timeout', 'dry-run', 'lowest-speed-limit',
- 'max-connection-per-server', 'max-file-not-found', 'max-tries', 'min-split-size', 'netrc-path', 'no-netrc',
- 'no-proxy', 'proxy-method', 'remote-time', 'reuse-uri', 'retry-wait', 'server-stat-of',
- 'server-stat-timeout', 'split', 'stream-piece-selector', 'timeout', 'uri-selector'
- ],
- httpOptions: [
- 'check-certificate', 'http-accept-gzip', 'http-auth-challenge', 'http-no-cache', 'http-user',
- 'http-passwd', 'http-proxy', 'http-proxy-user', 'http-proxy-passwd', 'https-proxy', 'https-proxy-user',
- 'https-proxy-passwd', 'referer', 'enable-http-keep-alive', 'enable-http-pipelining', 'header',
- 'save-cookies', 'use-head', 'user-agent'
- ],
- ftpSFtpOptions: [
- 'ftp-user', 'ftp-passwd', 'ftp-pasv', 'ftp-proxy', 'ftp-proxy-user', 'ftp-proxy-passwd',
- 'ftp-type', 'ftp-reuse-connection', 'ssh-host-key-md'
- ],
- btOptions: [
- 'bt-detach-seed-only', 'bt-enable-hook-after-hash-check', 'bt-enable-lpd', 'bt-exclude-tracker',
- 'bt-external-ip', 'bt-force-encryption', 'bt-hash-check-seed', 'bt-load-saved-metadata', 'bt-max-open-files', 'bt-max-peers',
- 'bt-metadata-only', 'bt-min-crypto-level', 'bt-prioritize-piece', 'bt-remove-unselected-file',
- 'bt-require-crypto', 'bt-request-peer-speed-limit', 'bt-save-metadata', 'bt-seed-unverified',
- 'bt-stop-timeout', 'bt-tracker', 'bt-tracker-connect-timeout', 'bt-tracker-interval', 'bt-tracker-timeout',
- 'dht-file-path', 'dht-file-path6', 'dht-listen-port', 'dht-message-timeout', 'enable-dht', 'enable-dht6',
- 'enable-peer-exchange', 'follow-torrent', 'listen-port', 'max-overall-upload-limit', 'max-upload-limit',
- 'peer-id-prefix', 'peer-agent', 'seed-ratio', 'seed-time'
- ],
- metalinkOptions: [
- 'follow-metalink', 'metalink-base-uri', 'metalink-language', 'metalink-location', 'metalink-os',
- 'metalink-version', 'metalink-preferred-protocol', 'metalink-enable-unique-protocol'
- ],
- rpcOptions: [
- 'enable-rpc', 'pause-metadata', 'rpc-allow-origin-all', 'rpc-listen-all', 'rpc-listen-port',
- 'rpc-max-request-size', 'rpc-save-upload-metadata', 'rpc-secure'
- ],
- advancedOptions: [
- 'allow-overwrite', 'allow-piece-length-change', 'always-resume', 'async-dns', 'auto-file-renaming',
- 'auto-save-interval', 'conditional-get', 'conf-path', 'console-log-level', 'content-disposition-default-utf8', 'daemon',
- 'deferred-input', 'disable-ipv6', 'disk-cache', 'download-result', 'dscp', 'rlimit-nofile', 'enable-color', 'enable-mmap',
- 'event-poll', 'file-allocation', 'force-save', 'save-not-found', 'hash-check-only', 'human-readable',
- 'keep-unfinished-download-result', 'max-download-result', 'max-mmap-limit', 'max-resume-failure-tries',
- 'min-tls-version', 'log-level', 'optimize-concurrent-downloads', 'piece-length', 'show-console-readout',
- 'summary-interval', 'max-overall-download-limit', 'max-download-limit', 'no-conf',
- 'no-file-allocation-limit', 'parameterized-uri', 'quiet', 'realtime-chunk-checksum', 'remove-control-file',
- 'save-session', 'save-session-interval', 'socket-recv-buffer-size', 'stop', 'truncate-console-readout'
- ]
- }).constant('aria2QuickSettingsAvailableOptions', {
- globalSpeedLimitOptions: [
- 'max-overall-download-limit', 'max-overall-upload-limit'
- ]
- }).constant('aria2TaskAvailableOptions', {
- // Aria2 Task Option Defination EXAMPLE:
- // {
- // key: 'option key',
- // category: 'global|http|bittorrent',
- // [canShow: 'new|active|waiting|paused',] // possible to show in specific status, supporting multiple choice. if not set, always show
- // [canUpdate: 'new|active|waiting|paused',] // possible to write in specific status, supporting multiple choice. if not set, always writable
- // [showHistory: true|false,] // show history under the input box, only supporting "string" type. if not set, this is set to false
- // }
- taskOptions: [
- {
- key: 'dir',
- category: 'global',
- canUpdate: 'new',
- showHistory: true
- },
- {
- key: 'out',
- category: 'http',
- canUpdate: 'new'
- },
- {
- key: 'allow-overwrite',
- category: 'global',
- canShow: 'new'
- },
- {
- key: 'max-download-limit',
- category: 'global'
- },
- {
- key: 'max-upload-limit',
- category: 'bittorrent'
- },
- {
- key: 'split',
- category: 'http',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'min-split-size',
- category: 'http',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'max-connection-per-server',
- category: 'http',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'lowest-speed-limit',
- category: 'http',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'stream-piece-selector',
- category: 'http',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'http-user',
- category: 'http',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'http-passwd',
- category: 'http',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'all-proxy',
- category: 'http',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'all-proxy-user',
- category: 'http',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'all-proxy-passwd',
- category: 'http',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'checksum',
- category: 'http'
- },
- {
- key: 'referer',
- category: 'http',
- canUpdate: 'new'
- },
- {
- key: 'header',
- category: 'http',
- canUpdate: 'new'
- },
- {
- key: 'bt-max-peers',
- category: 'bittorrent'
- },
- {
- key: 'bt-request-peer-speed-limit',
- category: 'bittorrent'
- },
- {
- key: 'bt-remove-unselected-file',
- category: 'bittorrent'
- },
- {
- key: 'bt-stop-timeout',
- category: 'bittorrent',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'bt-tracker',
- category: 'bittorrent',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'seed-ratio',
- category: 'bittorrent',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'seed-time',
- category: 'bittorrent',
- canUpdate: 'new|waiting|paused'
- },
- {
- key: 'conditional-get',
- category: 'global',
- canShow: 'new'
- },
- {
- key: 'file-allocation',
- category: 'global',
- canShow: 'new'
- },
- {
- key: 'parameterized-uri',
- category: 'global',
- canShow: 'new'
- },
- {
- key: 'force-save',
- category: 'global'
- }
- ]
- });
- }());
|