From a7367308945ef5ac392b3edf2205f6587d3f4dd3 Mon Sep 17 00:00:00 2001 From: "C.C" Date: Thu, 17 Oct 2024 22:07:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=81=9A=E7=A7=8D=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/brushtask.py | 1 - app/downloader/client/qbittorrent.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/brushtask.py b/app/brushtask.py index aa83b490..a1d144e6 100644 --- a/app/brushtask.py +++ b/app/brushtask.py @@ -412,7 +412,6 @@ def process_torrents(torrents: list[Torrent], downloader_cfg: dict, site_info: d else: delete_type = delete_type.value log.info(f"【Brush】{torrent.name} 达到删种条件:{delete_type},删除任务...") - self.redis_store.hdel('torrent', torrent_id) if sendmessage: __send_message(task_name, delete_type, torrent.name, downloader_cfg.get("name"), StringUtils.str_filesize(torrent.size), StringUtils.str_filesize(torrent.downloaded), diff --git a/app/downloader/client/qbittorrent.py b/app/downloader/client/qbittorrent.py index 7d4380cb..04e1fdde 100644 --- a/app/downloader/client/qbittorrent.py +++ b/app/downloader/client/qbittorrent.py @@ -743,7 +743,7 @@ def torrent_properties(self, torrent): # 做种时间 torrent_obj.seeding_time = (date_now - \ torrent.get("completion_on")) if torrent.get( - "completion_on") else 0 + "completion_on") > 0 else 0 # 分享率 torrent_obj.ratio = torrent.get("ratio") or 0 # 上传量