fix bug
This commit is contained in:
parent
4e13f59b36
commit
5adfa89d10
@ -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
|
||||||
|
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user