mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-06 15:21:27 +08:00
Merge pull request #4709 from wikrin/v2
This commit is contained in:
@@ -1450,6 +1450,10 @@ class TransferChain(ChainBase, metaclass=Singleton):
|
|||||||
if not torrents:
|
if not torrents:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# 未下载完成
|
||||||
|
if torrents[0].progress < 100:
|
||||||
|
return False
|
||||||
|
|
||||||
# 获取种子文件列表
|
# 获取种子文件列表
|
||||||
torrent_files = self.torrent_files(download_hash, downloader)
|
torrent_files = self.torrent_files(download_hash, downloader)
|
||||||
if not torrent_files:
|
if not torrent_files:
|
||||||
|
|||||||
@@ -253,7 +253,8 @@ class TransmissionModule(_ModuleBase, _DownloaderBase[Transmission]):
|
|||||||
path=Path(torrent.download_dir) / torrent.name,
|
path=Path(torrent.download_dir) / torrent.name,
|
||||||
hash=torrent.hashString,
|
hash=torrent.hashString,
|
||||||
size=torrent.total_size,
|
size=torrent.total_size,
|
||||||
tags=",".join(torrent.labels or [])
|
tags=",".join(torrent.labels or []),
|
||||||
|
progress=torrent.progress
|
||||||
))
|
))
|
||||||
finally:
|
finally:
|
||||||
torrents.clear()
|
torrents.clear()
|
||||||
|
|||||||
Reference in New Issue
Block a user