support show min supported aria2 version in settings page, support aria2 1.28.0 all options
This commit is contained in:
parent
35f7ae1177
commit
a98a3233be
|
@ -491,12 +491,16 @@ file-allocation.name=文件分配方法
|
||||||
file-allocation.description=指定文件分配方法. "无" 不会预先分配文件空间. "prealloc"会在下载开始前预先分配空间. 这将会根据文件的大小需要一定的时间. 如果您使用的是较新的文件系统, 例如 ext4 (带扩展支持), btrfs, xfs 或 NTFS (仅 MinGW 构建), "falloc" 是最好的选择. 其几乎可以瞬间分配大(数 GiB)文件. 不要在旧的文件系统, 例如 ext3 和 FAT32 上使用 falloc, 因为与 prealloc 花费的时间相同, 并且其会阻塞 aria2 知道分配完成. 当您的系统不支持 posix_fallocate(3) 函数时, falloc 可能无法使用. "trunc" 使用 ftruncate(2) 系统调用或平台特定的实现将文件截取到特定的长度.
|
file-allocation.description=指定文件分配方法. "无" 不会预先分配文件空间. "prealloc"会在下载开始前预先分配空间. 这将会根据文件的大小需要一定的时间. 如果您使用的是较新的文件系统, 例如 ext4 (带扩展支持), btrfs, xfs 或 NTFS (仅 MinGW 构建), "falloc" 是最好的选择. 其几乎可以瞬间分配大(数 GiB)文件. 不要在旧的文件系统, 例如 ext3 和 FAT32 上使用 falloc, 因为与 prealloc 花费的时间相同, 并且其会阻塞 aria2 知道分配完成. 当您的系统不支持 posix_fallocate(3) 函数时, falloc 可能无法使用. "trunc" 使用 ftruncate(2) 系统调用或平台特定的实现将文件截取到特定的长度.
|
||||||
force-save.name=强制保存
|
force-save.name=强制保存
|
||||||
force-save.description=即使任务完成或删除时使用 --save-session 选项时也保存该任务. 此选项在这种情况下还会保存控制文件. 此选项可以保存被认为已经完成但正在做种的 BT 任务.
|
force-save.description=即使任务完成或删除时使用 --save-session 选项时也保存该任务. 此选项在这种情况下还会保存控制文件. 此选项可以保存被认为已经完成但正在做种的 BT 任务.
|
||||||
|
save-not-found.name=保存未找到的文件
|
||||||
|
save-not-found.description=当使用 --save-session 选项时, 即使当任务中的文件不存在时也保存该下载任务. 此选项同时会将这种情况保存到控制文件中.
|
||||||
hash-check-only.name=仅哈希检查
|
hash-check-only.name=仅哈希检查
|
||||||
hash-check-only.description=如果设置为"是", 哈希检查完使用 --check-integrity 选项, 根据是否下载完成决定是否终止下载.
|
hash-check-only.description=如果设置为"是", 哈希检查完使用 --check-integrity 选项, 根据是否下载完成决定是否终止下载.
|
||||||
human-readable.name=控制台可读输出
|
human-readable.name=控制台可读输出
|
||||||
human-readable.description=在控制台输出可读格式的大小和速度 (例如, 1.2Ki, 3.4Mi).
|
human-readable.description=在控制台输出可读格式的大小和速度 (例如, 1.2Ki, 3.4Mi).
|
||||||
|
keep-unfinished-download-result.name=保留未完成的任务
|
||||||
|
keep-unfinished-download-result.description=保留所有未完成的下载结果, 即使超过了 --max-download-result 选项设置的数量. 这将有助于在会话文件中保存所有的未完成的下载 (参考 --save-session 选项). 需要注意的是, 未完成任务的数量没有上限. 如果不希望这样, 请关闭此选项.
|
||||||
max-download-result.name=最多下载结果
|
max-download-result.name=最多下载结果
|
||||||
max-download-result.description=设置内存中存储的最大下载结果. 下载结果包括已完成/错误/已删除的下载. 下载结果存储在一个先进先出的队列中, 因此其可以存储最多指定的下载结果的数量. 当队列已满且有新的下载结果创建时, 最老的下载结果将从队列的最前部移除, 新的将放在最后. 此选项设置较大的数字后如果经过几千次的下载将导致较高的内存消耗. 设置为 0 表示不存储下载结果.
|
max-download-result.description=设置内存中存储最多的下载结果数量. 下载结果包括已完成/错误/已删除的下载. 下载结果存储在一个先进先出的队列中, 因此其可以存储最多指定的下载结果的数量. 当队列已满且有新的下载结果创建时, 最老的下载结果将从队列的最前部移除, 新的将放在最后. 此选项设置较大的值后如果经过几千次的下载将导致较高的内存消耗. 设置为 0 表示不存储下载结果. 注意, 未完成的下载将始终保存在内存中, 不考虑该选项的设置. 参考 --keep-unfinished-download-result 选项.
|
||||||
max-mmap-limit.name=MMap 最大限制
|
max-mmap-limit.name=MMap 最大限制
|
||||||
max-mmap-limit.description=设置启用 MMap (参见 --enable-mmap 选项) 最大的文件大小. 文件大小由一个下载任务中所有文件大小的和决定. 例如, 如果一个下载包含 5 个文件, 那么文件大小就是这些文件的总大小. 如果文件大小超过此选项设置的大小时, MMap 将会禁用.
|
max-mmap-limit.description=设置启用 MMap (参见 --enable-mmap 选项) 最大的文件大小. 文件大小由一个下载任务中所有文件大小的和决定. 例如, 如果一个下载包含 5 个文件, 那么文件大小就是这些文件的总大小. 如果文件大小超过此选项设置的大小时, MMap 将会禁用.
|
||||||
max-resume-failure-tries.name=最大断点续传尝试次数
|
max-resume-failure-tries.name=最大断点续传尝试次数
|
||||||
|
|
|
@ -3,10 +3,12 @@
|
||||||
angular.module('ariaNg').constant('aria2AllOptions', {
|
angular.module('ariaNg').constant('aria2AllOptions', {
|
||||||
// EXAMPLE:
|
// EXAMPLE:
|
||||||
// 'option key': {
|
// 'option key': {
|
||||||
|
// [since: '',] //This option is supported by this or higher aria2 version
|
||||||
// type: 'string|integer|float|text|boolean|option',
|
// type: 'string|integer|float|text|boolean|option',
|
||||||
// [suffix: 'Bytes|Milliseconds|Seconds|Minutes|Hours',]
|
// [suffix: 'Bytes|Milliseconds|Seconds|Minutes|Hours',]
|
||||||
// [defaultValue: '',]
|
|
||||||
// [readonly: true|false,] //default: false
|
// [readonly: true|false,] //default: false
|
||||||
|
// [defaultValue: '',]
|
||||||
|
// [required: true|false,] //default: false
|
||||||
// [split: '',] //SUPPORT 'text' type
|
// [split: '',] //SUPPORT 'text' type
|
||||||
// [showCount: true|false,] //SUPPORT 'text' type, parameter 'split' is required, default: false
|
// [showCount: true|false,] //SUPPORT 'text' type, parameter 'split' is required, default: false
|
||||||
// [options: [],] //SUPPORT 'option' type
|
// [options: [],] //SUPPORT 'option' type
|
||||||
|
@ -283,6 +285,7 @@
|
||||||
defaultValue: 'false'
|
defaultValue: 'false'
|
||||||
},
|
},
|
||||||
'bt-enable-hook-after-hash-check': {
|
'bt-enable-hook-after-hash-check': {
|
||||||
|
since: '1.19.3',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'true',
|
defaultValue: 'true',
|
||||||
required: true
|
required: true
|
||||||
|
@ -470,7 +473,7 @@
|
||||||
min: 0
|
min: 0
|
||||||
},
|
},
|
||||||
'seed-time': {
|
'seed-time': {
|
||||||
type: 'integer',
|
type: 'float',
|
||||||
suffix: 'Minutes',
|
suffix: 'Minutes',
|
||||||
required: true,
|
required: true,
|
||||||
min: 0
|
min: 0
|
||||||
|
@ -655,6 +658,12 @@
|
||||||
defaultValue: 'false',
|
defaultValue: 'false',
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
|
'save-not-found': {
|
||||||
|
since: '1.27.0',
|
||||||
|
type: 'boolean',
|
||||||
|
defaultValue: 'true',
|
||||||
|
required: true
|
||||||
|
},
|
||||||
'hash-check-only': {
|
'hash-check-only': {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: 'false',
|
defaultValue: 'false',
|
||||||
|
@ -665,6 +674,11 @@
|
||||||
readonly: true,
|
readonly: true,
|
||||||
defaultValue: 'true'
|
defaultValue: 'true'
|
||||||
},
|
},
|
||||||
|
'keep-unfinished-download-result': {
|
||||||
|
type: 'boolean',
|
||||||
|
defaultValue: 'true',
|
||||||
|
required: true
|
||||||
|
},
|
||||||
'max-download-result': {
|
'max-download-result': {
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
defaultValue: '1000',
|
defaultValue: '1000',
|
||||||
|
@ -672,6 +686,7 @@
|
||||||
min: 0
|
min: 0
|
||||||
},
|
},
|
||||||
'max-mmap-limit': {
|
'max-mmap-limit': {
|
||||||
|
since: '1.20.0',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
suffix: 'Bytes',
|
suffix: 'Bytes',
|
||||||
defaultValue: '9223372036854775807',
|
defaultValue: '9223372036854775807',
|
||||||
|
@ -697,6 +712,7 @@
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
'optimize-concurrent-downloads': {
|
'optimize-concurrent-downloads': {
|
||||||
|
since: '1.22.0',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
defaultValue: 'false'
|
defaultValue: 'false'
|
||||||
},
|
},
|
||||||
|
@ -772,6 +788,7 @@
|
||||||
defaultValue: '0'
|
defaultValue: '0'
|
||||||
},
|
},
|
||||||
'socket-recv-buffer-size': {
|
'socket-recv-buffer-size': {
|
||||||
|
since: '1.19.3',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
suffix: 'Bytes',
|
suffix: 'Bytes',
|
||||||
readonly: true,
|
readonly: true,
|
||||||
|
@ -796,7 +813,7 @@
|
||||||
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-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', 'seed-ratio', 'seed-time'],
|
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-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', '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'],
|
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'],
|
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', 'daemon', 'deferred-input', 'disable-ipv6', 'disk-cache', 'download-result', 'dscp', 'rlimit-nofile', 'enable-color', 'enable-mmap', 'event-poll', 'file-allocation', 'force-save', 'hash-check-only', 'human-readable', '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']
|
advancedOptions: ['allow-overwrite', 'allow-piece-length-change', 'always-resume', 'async-dns', 'auto-file-renaming', 'auto-save-interval', 'conditional-get', 'conf-path', 'console-log-level', '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('aria2TaskAvailableOptions', {
|
}).constant('aria2TaskAvailableOptions', {
|
||||||
taskOptions: [
|
taskOptions: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -510,12 +510,16 @@
|
||||||
'file-allocation.description': 'Specify file allocation method. none doesn\'t pre-allocate file space. prealloc pre-allocates file space before download begins. This may take some time depending on the size of the file. If you are using newer file systems such as ext4 (with extents support), btrfs, xfs or NTFS(MinGW build only), falloc is your best choice. It allocates large(few GiB) files almost instantly. Don\'t use falloc with legacy file systems such as ext3 and FAT32 because it takes almost same time as prealloc and it blocks aria2 entirely until allocation finishes. falloc may not be available if your system doesn\'t have posix_fallocate(3) function. trunc uses ftruncate(2) system call or platform-specific counterpart to truncate a file to a specified length.',
|
'file-allocation.description': 'Specify file allocation method. none doesn\'t pre-allocate file space. prealloc pre-allocates file space before download begins. This may take some time depending on the size of the file. If you are using newer file systems such as ext4 (with extents support), btrfs, xfs or NTFS(MinGW build only), falloc is your best choice. It allocates large(few GiB) files almost instantly. Don\'t use falloc with legacy file systems such as ext3 and FAT32 because it takes almost same time as prealloc and it blocks aria2 entirely until allocation finishes. falloc may not be available if your system doesn\'t have posix_fallocate(3) function. trunc uses ftruncate(2) system call or platform-specific counterpart to truncate a file to a specified length.',
|
||||||
'force-save.name': 'Force Save',
|
'force-save.name': 'Force Save',
|
||||||
'force-save.description': 'Save download with --save-session option even if the download is completed or removed. This option also saves control file in that situations. This may be useful to save BitTorrent seeding which is recognized as completed state.',
|
'force-save.description': 'Save download with --save-session option even if the download is completed or removed. This option also saves control file in that situations. This may be useful to save BitTorrent seeding which is recognized as completed state.',
|
||||||
|
'save-not-found.name': 'Save Not Found File',
|
||||||
|
'save-not-found.description': 'Save download with --save-session option even if the file was not found on the server. This option also saves control file in that situations.',
|
||||||
'hash-check-only.name': 'Hash Check Only',
|
'hash-check-only.name': 'Hash Check Only',
|
||||||
'hash-check-only.description': 'If true is given, after hash check using --check-integrity option, abort download whether or not download is complete.',
|
'hash-check-only.description': 'If true is given, after hash check using --check-integrity option, abort download whether or not download is complete.',
|
||||||
'human-readable.name': 'Console Human Readable Output',
|
'human-readable.name': 'Console Human Readable Output',
|
||||||
'human-readable.description': 'Print sizes and speed in human readable format (e.g., 1.2Ki, 3.4Mi) in the console readout.',
|
'human-readable.description': 'Print sizes and speed in human readable format (e.g., 1.2Ki, 3.4Mi) in the console readout.',
|
||||||
|
'keep-unfinished-download-result.name': 'Keep Unfinished Download Result',
|
||||||
|
'keep-unfinished-download-result.description': 'Keep unfinished download results even if doing so exceeds --max-download-result. This is useful if all unfinished downloads must be saved in session file (see --save-session option). Please keep in mind that there is no upper bound to the number of unfinished download result to keep. If that is undesirable, turn this option off.',
|
||||||
'max-download-result.name': 'Max Download Result',
|
'max-download-result.name': 'Max Download Result',
|
||||||
'max-download-result.description': 'Set maximum number of download result kept in memory. The download results are completed/error/removed downloads. The download results are stored in FIFO queue and it can store at most NUM download results. When queue is full and new download result is created, oldest download result is removed from the front of the queue and new one is pushed to the back. Setting big number in this option may result high memory consumption after thousands of downloads. Specifying 0 means no download result is kept.',
|
'max-download-result.description': 'Set maximum number of download result kept in memory. The download results are completed/error/removed downloads. The download results are stored in FIFO queue and it can store at most NUM download results. When queue is full and new download result is created, oldest download result is removed from the front of the queue and new one is pushed to the back. Setting big number in this option may result high memory consumption after thousands of downloads. Specifying 0 means no download result is kept. Note that unfinished downloads are kept in memory regardless of this option value. See --keep-unfinished-download-result option.',
|
||||||
'max-mmap-limit.name': 'Max MMap Limit',
|
'max-mmap-limit.name': 'Max MMap Limit',
|
||||||
'max-mmap-limit.description': 'Set the maximum file size to enable mmap (see --enable-mmap option). The file size is determined by the sum of all files contained in one download. For example, if a download contains 5 files, then file size is the total size of those files. If file size is strictly greater than the size specified in this option, mmap will be disabled.',
|
'max-mmap-limit.description': 'Set the maximum file size to enable mmap (see --enable-mmap option). The file size is determined by the sum of all files contained in one download. For example, if a download contains 5 files, then file size is the total size of those files. If file size is strictly greater than the size specified in this option, mmap will be disabled.',
|
||||||
'max-resume-failure-tries.name': 'Max Resume Failture Try Times',
|
'max-resume-failure-tries.name': 'Max Resume Failture Try Times',
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
data-toggle="popover" data-trigger="hover" data-placement="auto top" data-container="body" data-content="{{option.descriptionKey | translate}}"></i>
|
data-toggle="popover" data-trigger="hover" data-placement="auto top" data-container="body" data-content="{{option.descriptionKey | translate}}"></i>
|
||||||
<span class="description" ng-if="option.showCount && option.split && optionValue"
|
<span class="description" ng-if="option.showCount && option.split && optionValue"
|
||||||
ng-bind="'format.settings.total-count' | translate: {count: getTotalCount()}"></span>
|
ng-bind="'format.settings.total-count' | translate: {count: getTotalCount()}"></span>
|
||||||
|
<i class="icon-primary fa fa-info-circle" ng-if="(option.since && option.since !== '')" ng-tooltip="{{'>= ' + option.since}}" ng-tooltip-container="body" ng-tooltip-placement="right"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-value col-sm-8">
|
<div class="setting-value col-sm-8">
|
||||||
<div ng-class="{'input-group': !!option.suffix}">
|
<div ng-class="{'input-group': !!option.suffix}">
|
||||||
|
|
Reference in a new issue