Browse Source

merge AriaNg commit (https://github.com/mayswind/AriaNg/commit/6f1dc6e56ee7851e9186180a5484f56b410fde5e)

MaysWind 3 years ago
parent
commit
b1f123f91c

+ 2 - 0
app/langs/zh_Hans.txt

@@ -410,6 +410,8 @@ all-proxy-user.name=代理服务器用户名
 all-proxy-user.description=
 all-proxy-passwd.name=代理服务器密码
 all-proxy-passwd.description=
+checksum.name=校验和
+checksum.description=设置校验和. 选项值格式为 TYPE=DIGEST. TYPE 为哈希类型. 支持的哈希类型列在 aria2c -v 的 Hash Algorithms 中. DIGEST 是十六进制摘要. 例如, 设置 sha-1 摘要如同这样: sha-1=0192ba11326fe2298c8cb4de616f4d4140213838 此选项仅对 HTTP(S)/FTP 下载生效.
 connect-timeout.name=连接超时时间
 connect-timeout.description=设置建立 HTTP/FTP/代理服务器 连接的超时时间(秒). 当连接建立后, 此选项不再生效, 请使用 --timeout 选项.
 dry-run.name=模拟运行

+ 2 - 0
app/langs/zh_Hant.txt

@@ -410,6 +410,8 @@ all-proxy-user.name=代理伺服器使用者名稱
 all-proxy-user.description=
 all-proxy-passwd.name=代理伺服器密碼
 all-proxy-passwd.description=
+checksum.name=總和檢查碼
+checksum.description=設定總和檢查碼. 選項值格式為 TYPE=DIGEST. TYPE 為雜湊類型. 支援的雜湊類型列在 aria2c -v 的 Hash Algorithms 中. DIGEST 是十六進位摘要. 例如, 設定 sha-1 摘要如同這樣: sha-1=0192ba11326fe2298c8cb4de616f4d4140213838 此選項僅對 HTTP(S)/FTP 下載生效.
 connect-timeout.name=連線超時時間
 connect-timeout.description=設定建立 HTTP/FTP/代理伺服器 連線的超時時間(秒). 當連線建立後, 此選項不再生效, 請使用 --timeout 選項.
 dry-run.name=模擬運行

+ 8 - 0
app/scripts/config/aria2Options.js

@@ -54,6 +54,10 @@
         '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',
@@ -975,6 +979,10 @@
                 category: 'http',
                 canUpdate: 'new|waiting|paused'
             },
+            {
+                key: 'checksum',
+                category: 'http'
+            },
             {
                 key: 'referer',
                 category: 'http',

+ 2 - 0
app/scripts/config/defaultLanguage.js

@@ -432,6 +432,8 @@
                 'all-proxy-user.description': '',
                 'all-proxy-passwd.name': 'Proxy Password',
                 'all-proxy-passwd.description': '',
+                'checksum.name': 'Checksum',
+                'checksum.description': 'Set checksum. The option value format is TYPE=DIGEST. TYPE is hash type. The supported hash type is listed in Hash Algorithms in aria2c -v. DIGEST is hex digest. For example, setting sha-1 digest looks like this: sha-1=0192ba11326fe2298c8cb4de616f4d4140213838 This option applies only to HTTP(S)/FTP downloads.',
                 'connect-timeout.name': 'Connect Timeout',
                 'connect-timeout.description': 'Set the connect timeout in seconds to establish connection to HTTP/FTP/proxy server. After the connection is established, this option makes no effect and --timeout option is used instead.',
                 'dry-run.name': 'Dry Run',