| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036 |
- (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: '']
- // }
- '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'
- },
- '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: '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'
- }
- ]
- });
- }());
|