This commit is contained in:
thsrite 2023-10-13 10:26:40 +08:00
parent 4e13f59b36
commit 5adfa89d10
2 changed files with 2 additions and 4 deletions

View File

@ -1276,8 +1276,6 @@ class MediaSyncDel(_PluginBase):
""" """
下载文件删除处理事件 下载文件删除处理事件
""" """
if not self._enabled:
return
if not event: if not event:
return return
event_data = event.event_data event_data = event.event_data

View File

@ -158,8 +158,8 @@ class NAStoolSync(_PluginBase):
# 替换value # 替换value
if isinstance(plugin_value, str): if isinstance(plugin_value, str):
_value: dict = json.loads(plugin_value) plugin_value = json.loads(plugin_value)
elif isinstance(plugin_value, dict): if isinstance(plugin_value, dict):
if str(plugin_value.get("to_download")).isdigit() and int( if str(plugin_value.get("to_download")).isdigit() and int(
plugin_value.get("to_download")) == int(sub_downloaders[0]): plugin_value.get("to_download")) == int(sub_downloaders[0]):
plugin_value["to_download"] = sub_downloaders[1] plugin_value["to_download"] = sub_downloaders[1]