File tree Expand file tree Collapse file tree
app/plugins/torrenttransfer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -697,17 +697,19 @@ def check_recheck(self):
697697 can_seeding_torrents .append (hash_str )
698698
699699 if can_seeding_torrents :
700- logger .info (f"共 { len (can_seeding_torrents )} 个任务校验完成,开始做种 ... " )
700+ logger .info (f"共 { len (can_seeding_torrents )} 个任务校验完成,开始做种" )
701701 # 开始做种
702702 downloader_obj .start_torrents (ids = can_seeding_torrents )
703703 # 去除已经处理过的种子
704704 self ._recheck_torrents [downloader ] = list (
705705 set (recheck_torrents ).difference (set (can_seeding_torrents )))
706+ else :
707+ logger .info (f"没有新的任务校验完成,将在下次个周期继续检查 ..." )
706708
707709 elif torrents is None :
708710 logger .info (f"下载器 { downloader } 查询校验任务失败,将在下次继续查询 ..." )
709711 else :
710- logger .info (f"下载器 { downloader } 中没有需要检查的校验任务,清空待处理列表 ... " )
712+ logger .info (f"下载器 { downloader } 中没有需要检查的校验任务,清空待处理列表" )
711713 self ._recheck_torrents [downloader ] = []
712714
713715 self ._is_recheck_running = False
@@ -752,8 +754,8 @@ def __can_seeding(torrent: Any, dl_type: str):
752754 判断种子是否可以做种并处于暂停状态
753755 """
754756 try :
755- return torrent .get ("state" ) == "pausedUP" and torrent . get ( "tracker " ) if dl_type == "qbittorrent" \
756- else (torrent .status .stopped and torrent .percent_done == 1 and torrent . trackers )
757+ return ( torrent .get ("state" ) == "pausedUP" ) if dl_type == "qbittorrent" \
758+ else (torrent .status .stopped and torrent .percent_done == 1 )
757759 except Exception as e :
758760 print (str (e ))
759761 return False
You can’t perform that action at this time.
0 commit comments