修复磁力链任务不更新任务信息

1. 活跃任务信息增加 `name`、`totalSize` 字段
2. 是否更新更多的任务信息根据文件列表是否为空来判断
This commit is contained in:
imebeh 2020-03-23 01:40:01 +08:00
parent 91ea7ab968
commit 3d4971f89e
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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