support show download url in task detail page
This commit is contained in:
parent
8c735852c1
commit
06a4b807b2
|
@ -84,6 +84,7 @@ Info Hash=特征值
|
||||||
Seeders=种子数
|
Seeders=种子数
|
||||||
Connections=连接数
|
Connections=连接数
|
||||||
Seed Creation Time=种子创建时间
|
Seed Creation Time=种子创建时间
|
||||||
|
Download Url=下载地址
|
||||||
Download Dir=下载路径
|
Download Dir=下载路径
|
||||||
BT Tracker Servers=BT 服务器
|
BT Tracker Servers=BT 服务器
|
||||||
(Choose Files)=(选择文件)
|
(Choose Files)=(选择文件)
|
||||||
|
|
|
@ -84,6 +84,7 @@ Info Hash=特徵值
|
||||||
Seeders=種子數
|
Seeders=種子數
|
||||||
Connections=連接數
|
Connections=連接數
|
||||||
Seed Creation Time=種子創建時間
|
Seed Creation Time=種子創建時間
|
||||||
|
Download Url=下載地址
|
||||||
Download Dir=下載路徑
|
Download Dir=下載路徑
|
||||||
BT Tracker Servers=BT 伺服器
|
BT Tracker Servers=BT 伺服器
|
||||||
(Choose Files)=(選擇文件)
|
(Choose Files)=(選擇文件)
|
||||||
|
|
|
@ -88,6 +88,7 @@
|
||||||
'Seeders': 'Seeders',
|
'Seeders': 'Seeders',
|
||||||
'Connections': 'Connections',
|
'Connections': 'Connections',
|
||||||
'Seed Creation Time': 'Seed Creation Time',
|
'Seed Creation Time': 'Seed Creation Time',
|
||||||
|
'Download Url': 'Download Url',
|
||||||
'Download Dir': 'Download Dir',
|
'Download Dir': 'Download Dir',
|
||||||
'BT Tracker Servers': 'BT Tracker Servers',
|
'BT Tracker Servers': 'BT Tracker Servers',
|
||||||
'(Choose Files)': '(Choose Files)',
|
'(Choose Files)': '(Choose Files)',
|
||||||
|
|
|
@ -172,6 +172,24 @@
|
||||||
task.selectedFileCount = selectedFileCount;
|
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;
|
return task;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -125,6 +125,14 @@
|
||||||
<span class="allow-word-break" ng-bind="task.infoHash"></span>
|
<span class="allow-word-break" ng-bind="task.infoHash"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row" ng-if="task && task.singleUrl">
|
||||||
|
<div class="setting-key col-sm-4">
|
||||||
|
<span translate>Download Url</span>
|
||||||
|
</div>
|
||||||
|
<div class="setting-value col-sm-8">
|
||||||
|
<span class="allow-word-break" ng-bind="task.singleUrl"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="row" ng-if="task">
|
<div class="row" ng-if="task">
|
||||||
<div class="setting-key col-sm-4">
|
<div class="setting-key col-sm-4">
|
||||||
<span translate>Download Dir</span>
|
<span translate>Download Dir</span>
|
||||||
|
|
Reference in a new issue