From 12326f9456955e45ca7377bd1b5ce8f7c7cf99be Mon Sep 17 00:00:00 2001 From: thsrite Date: Wed, 24 Apr 2024 11:07:51 +0800 Subject: [PATCH] fix bug --- plugins/subscribegroup/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/subscribegroup/__init__.py b/plugins/subscribegroup/__init__.py index d9f3163..bd95639 100644 --- a/plugins/subscribegroup/__init__.py +++ b/plugins/subscribegroup/__init__.py @@ -228,6 +228,8 @@ class SubscribeGroup(_PluginBase): logger.warning(f"种子hash:{download_hash} 对应下载记录不存在") return + history_handle: List[str] = self.get_data('history_handle') or [] + if f"{download_history.type}:{download_history.tmdbid}" in history_handle: logger.warning(f"下载历史:{download_history.title} 已处理过,不再重复处理") return @@ -312,7 +314,6 @@ class SubscribeGroup(_PluginBase): self.save_data(key="history", value=history) # 保存已处理历史 - history_handle: List[str] = self.get_data('history_handle') or [] history_handle.append(f"{download_history.type}:{download_history.tmdbid}") self.save_data('history_handle', history_handle)