mirror of
https://github.com/ronggang/transmission-web-control.git
synced 2025-05-18 08:36:52 +00:00
修复磁力链任务不更新任务信息
1. 活跃任务信息增加 `name`、`totalSize` 字段 2. 是否更新更多的任务信息根据文件列表是否为空来判断
This commit is contained in:
parent
91ea7ab968
commit
3d4971f89e
@ -2595,7 +2595,9 @@ var system = {
|
||||
}
|
||||
|
||||
torrent.completeSize = (torrent.totalSize - torrent.leftUntilDone);
|
||||
torrent.moreInfosTag = true;
|
||||
if (("files" in torrent) && torrent.files.length > 0) {
|
||||
torrent.moreInfosTag = true;
|
||||
}
|
||||
system.fillTorrentBaseInfos(torrent);
|
||||
system.fillTorrentFileList(torrent);
|
||||
system.fillTorrentServerList(torrent);
|
||||
|
@ -16,7 +16,7 @@ transmission.torrents = {
|
||||
pausedTorrentCount: 0,
|
||||
fields: {
|
||||
base: "id,name,status,hashString,totalSize,percentDone,addedDate,trackerStats,leftUntilDone,rateDownload,rateUpload,recheckProgress" + ",rateDownload,rateUpload,peersGettingFromUs,peersSendingToUs,uploadRatio,uploadedEver,downloadedEver,downloadDir,error,errorString,doneDate,queuePosition,activityDate",
|
||||
status: "id,status,percentDone,trackerStats,leftUntilDone,rateDownload,rateUpload" + ",rateDownload,rateUpload,peersGettingFromUs,peersSendingToUs,uploadRatio,uploadedEver,downloadedEver,error,errorString,doneDate,queuePosition,activityDate",
|
||||
status: "id,name,status,totalSize,percentDone,trackerStats,leftUntilDone,rateDownload,rateUpload" + ",rateDownload,rateUpload,peersGettingFromUs,peersSendingToUs,uploadRatio,uploadedEver,downloadedEver,error,errorString,doneDate,queuePosition,activityDate",
|
||||
config: "downloadLimit,downloadLimited,peer-limit,seedIdleLimit,seedIdleMode,seedRatioLimit,seedRatioMode,uploadLimit,uploadLimited"
|
||||
},
|
||||
// List of all the torrents that have been acquired
|
||||
|
Loading…
x
Reference in New Issue
Block a user