From 7878d4ad1b3a73ce74b468b4936d1f43b829f577 Mon Sep 17 00:00:00 2001 From: Allen Date: Sat, 30 Mar 2024 05:32:35 +0000 Subject: [PATCH] fix bug --- plugins/downloaderhelper/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/downloaderhelper/__init__.py b/plugins/downloaderhelper/__init__.py index 072e3a6..52ebeb6 100644 --- a/plugins/downloaderhelper/__init__.py +++ b/plugins/downloaderhelper/__init__.py @@ -1541,9 +1541,9 @@ class DownloaderHelper(_PluginBase): # 执行 logger.info('下载添加事件监听任务执行开始...') context = TaskContext().enable_seeding(False).enable_tagging(True).enable_delete(False) - hash = event.event_data.get('hash') - if hash: - context.select_torrent(torrent=hash) + _hash = event.event_data.get('hash') + if _hash: + context.select_torrent(torrent=_hash) username = event.event_data.get('username') if username: context.set_username(username=username)