rclone移动模式下删除种子文件

This commit is contained in:
jxxghp 2024-06-14 16:53:15 +08:00
parent 0270af5b19
commit 851dd85fc6
2 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,7 @@ class QbittorrentModule(_ModuleBase):
return return
self.qbittorrent.set_torrents_tag(ids=hashs, tags=['已整理']) self.qbittorrent.set_torrents_tag(ids=hashs, tags=['已整理'])
# 移动模式删除种子 # 移动模式删除种子
if settings.TRANSFER_TYPE == "move": if settings.TRANSFER_TYPE in ["move", "rclone_move"]:
if self.remove_torrents(hashs): if self.remove_torrents(hashs):
logger.info(f"移动模式删除种子成功:{hashs} ") logger.info(f"移动模式删除种子成功:{hashs} ")
# 删除残留文件 # 删除残留文件

View File

@ -251,7 +251,7 @@ class TransmissionModule(_ModuleBase):
tags = ['已整理'] tags = ['已整理']
self.transmission.set_torrent_tag(ids=hashs, tags=tags) self.transmission.set_torrent_tag(ids=hashs, tags=tags)
# 移动模式删除种子 # 移动模式删除种子
if settings.TRANSFER_TYPE == "move": if settings.TRANSFER_TYPE in ["move", "rclone_move"]:
if self.remove_torrents(hashs): if self.remove_torrents(hashs):
logger.info(f"移动模式删除种子成功:{hashs} ") logger.info(f"移动模式删除种子成功:{hashs} ")
# 删除残留文件 # 删除残留文件