mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
fix #3775
This commit is contained in:
@@ -453,9 +453,12 @@ class TransferChain(ChainBase, metaclass=Singleton):
|
|||||||
if transferinfo.transfer_type in ["move"]:
|
if transferinfo.transfer_type in ["move"]:
|
||||||
# 所有成功的业务
|
# 所有成功的业务
|
||||||
tasks = self.jobview.success_tasks(task.mediainfo, task.meta.begin_season)
|
tasks = self.jobview.success_tasks(task.mediainfo, task.meta.begin_season)
|
||||||
|
# 记录已处理的种子hash
|
||||||
|
processed_hashes = set()
|
||||||
for t in tasks:
|
for t in tasks:
|
||||||
# 下载器hash
|
# 下载器hash
|
||||||
if t.download_hash:
|
if t.download_hash and t.download_hash not in processed_hashes:
|
||||||
|
processed_hashes.add(t.download_hash)
|
||||||
if self.remove_torrents(t.download_hash, downloader=t.downloader):
|
if self.remove_torrents(t.download_hash, downloader=t.downloader):
|
||||||
logger.info(f"移动模式删除种子成功:{t.download_hash} ")
|
logger.info(f"移动模式删除种子成功:{t.download_hash} ")
|
||||||
# 删除残留目录
|
# 删除残留目录
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ class StorageBase(metaclass=ABCMeta):
|
|||||||
"""
|
"""
|
||||||
获取父目录
|
获取父目录
|
||||||
"""
|
"""
|
||||||
return self.get_folder(Path(fileitem.path).parent)
|
return self.get_item(Path(fileitem.path).parent)
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def delete(self, fileitem: schemas.FileItem) -> bool:
|
def delete(self, fileitem: schemas.FileItem) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user