diff --git a/src/langs/zh_Hans.txt b/src/langs/zh_Hans.txt index dc02666..61309df 100644 --- a/src/langs/zh_Hans.txt +++ b/src/langs/zh_Hans.txt @@ -84,6 +84,7 @@ Info Hash=特征值 Seeders=种子数 Connections=连接数 Seed Creation Time=种子创建时间 +Download Url=下载地址 Download Dir=下载路径 BT Tracker Servers=BT 服务器 (Choose Files)=(选择文件) diff --git a/src/langs/zh_Hant.txt b/src/langs/zh_Hant.txt index 05139de..8ec7105 100644 --- a/src/langs/zh_Hant.txt +++ b/src/langs/zh_Hant.txt @@ -84,6 +84,7 @@ Info Hash=特徵值 Seeders=種子數 Connections=連接數 Seed Creation Time=種子創建時間 +Download Url=下載地址 Download Dir=下載路徑 BT Tracker Servers=BT 伺服器 (Choose Files)=(選擇文件) diff --git a/src/scripts/config/defaultLanguage.js b/src/scripts/config/defaultLanguage.js index 1cdcdfa..fbf23fe 100644 --- a/src/scripts/config/defaultLanguage.js +++ b/src/scripts/config/defaultLanguage.js @@ -88,6 +88,7 @@ 'Seeders': 'Seeders', 'Connections': 'Connections', 'Seed Creation Time': 'Seed Creation Time', + 'Download Url': 'Download Url', 'Download Dir': 'Download Dir', 'BT Tracker Servers': 'BT Tracker Servers', '(Choose Files)': '(Choose Files)', diff --git a/src/scripts/services/aria2TaskService.js b/src/scripts/services/aria2TaskService.js index bb50f2e..03cfb93 100644 --- a/src/scripts/services/aria2TaskService.js +++ b/src/scripts/services/aria2TaskService.js @@ -172,6 +172,24 @@ task.selectedFileCount = selectedFileCount; } + if (task.files && task.files.length === 1 && task.files[0].uris && task.files[0].uris[0]) { + var isSingleUrlTask = true; + var firstUri = task.files[0].uris[0].uri; + + for (var i = 0; i < task.files[0].uris.length; i++) { + var uri = task.files[0].uris[i].uri; + + if (uri !== firstUri) { + isSingleUrlTask = false; + break; + } + } + + if (isSingleUrlTask) { + task.singleUrl = firstUri; + } + } + return task; }; diff --git a/src/views/task-detail.html b/src/views/task-detail.html index fcc5325..5d412a7 100644 --- a/src/views/task-detail.html +++ b/src/views/task-detail.html @@ -125,6 +125,14 @@ +
+
+ Download Url +
+
+ +
+
Download Dir