mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 08:26:53 +08:00
Merge pull request #4262 from wumode/fix_4180
This commit is contained in:
Regular → Executable
+1
-1
@@ -860,7 +860,7 @@ class TransferChain(ChainBase, metaclass=Singleton):
|
|||||||
|
|
||||||
# 设置下载任务状态
|
# 设置下载任务状态
|
||||||
if state:
|
if state:
|
||||||
self.transfer_completed(hashs=torrent.hash)
|
self.transfer_completed(hashs=torrent.hash, downloader=torrent.downloader)
|
||||||
|
|
||||||
# 结束
|
# 结束
|
||||||
logger.info("所有下载器中下载完成的文件已整理完成")
|
logger.info("所有下载器中下载完成的文件已整理完成")
|
||||||
|
|||||||
Regular → Executable
+3
-2
@@ -163,8 +163,9 @@ class Transmission:
|
|||||||
if not self.trc:
|
if not self.trc:
|
||||||
return []
|
return []
|
||||||
try:
|
try:
|
||||||
torrent = self.trc.get_torrents(ids=ids, arguments=self._trarg)
|
torrents = self.trc.get_torrents(ids=ids, arguments=self._trarg)
|
||||||
if torrent:
|
if len(torrents):
|
||||||
|
torrent = torrents[0]
|
||||||
labels = [str(tag).strip()
|
labels = [str(tag).strip()
|
||||||
for tag in torrent.labels] if hasattr(torrent, "labels") else []
|
for tag in torrent.labels] if hasattr(torrent, "labels") else []
|
||||||
return labels
|
return labels
|
||||||
|
|||||||
Reference in New Issue
Block a user