From 5d604b9b1402599547f4c733fa94ae5752b91773 Mon Sep 17 00:00:00 2001 From: pren Date: Thu, 22 May 2025 11:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0debug=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E6=8E=92=E6=9F=A5del=5Fno=5Ffree=E6=97=A0=E6=B3=95=E8=A2=AB?= =?UTF-8?q?=E4=BD=BF=E8=83=BD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins.v2/brushflow/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins.v2/brushflow/__init__.py b/plugins.v2/brushflow/__init__.py index 03412e3..3fb0094 100644 --- a/plugins.v2/brushflow/__init__.py +++ b/plugins.v2/brushflow/__init__.py @@ -39,6 +39,8 @@ class BrushConfig: """ def __init__(self, config: dict, process_site_config=True): + logger.debug(f"[xx]根据配置创建BrushConfig:{config}") + self.enabled = config.get("enabled", False) self.notify = config.get("notify", True) self.onlyonce = config.get("onlyonce", False) @@ -74,6 +76,7 @@ class BrushConfig: self.brush_sequential = config.get("brush_sequential", False) self.proxy_delete = config.get("proxy_delete", False) self.del_no_free = config.get("del_no_free", False) if self.freeleech in ["free", "2xfree"] else False + logger.debug(f'self.freeleech: {self.freeleech}, self.freeleech in ["free", "2xfree"]: {self.freeleech in ["free", "2xfree"]}, del_no_free: {del_no_free}') self.active_time_range = config.get("active_time_range") self.cron = config.get("cron") self.qb_category = config.get("qb_category") @@ -2571,6 +2574,8 @@ class BrushFlow(_PluginBase): if not torrent: logger.debug(f"未获取到种子 {torrent_info.get('hash', '?')} 的任务信息。") + logger.debug(f"brush_config.del_no_free: {brush_config.del_no_free}") + while torrent and brush_config.del_no_free: if not torrent.get("freedate", None): logger.warning(f"配置了‘删除促销过期的未完成下载’,但未获取到该种子的促销截止时间,跳过。")