fix
This commit is contained in:
parent
d70afc36c9
commit
7130194d5f
@ -578,13 +578,6 @@ class MediaSyncDel(_PluginBase):
|
|||||||
"""
|
"""
|
||||||
执行删除逻辑
|
执行删除逻辑
|
||||||
"""
|
"""
|
||||||
if not media_type:
|
|
||||||
logger.error(f"{media_name} 同步删除失败,未获取到媒体类型,请检查媒体是否刮削")
|
|
||||||
return
|
|
||||||
if not tmdb_id or not str(tmdb_id).isdigit():
|
|
||||||
logger.error(f"{media_name} 同步删除失败,未获取到TMDB ID,请检查媒体是否刮削")
|
|
||||||
return
|
|
||||||
|
|
||||||
if self._exclude_path and media_path and any(
|
if self._exclude_path and media_path and any(
|
||||||
os.path.abspath(media_path).startswith(os.path.abspath(path)) for path in
|
os.path.abspath(media_path).startswith(os.path.abspath(path)) for path in
|
||||||
self._exclude_path.split(",")):
|
self._exclude_path.split(",")):
|
||||||
@ -601,6 +594,13 @@ class MediaSyncDel(_PluginBase):
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not media_type:
|
||||||
|
logger.error(f"{media_name} 同步删除失败,未获取到媒体类型,请检查媒体是否刮削")
|
||||||
|
return
|
||||||
|
if not tmdb_id or not str(tmdb_id).isdigit():
|
||||||
|
logger.error(f"{media_name} 同步删除失败,未获取到TMDB ID,请检查媒体是否刮削")
|
||||||
|
return
|
||||||
|
|
||||||
# 查询转移记录
|
# 查询转移记录
|
||||||
msg, transfer_history = self.__get_transfer_his(media_type=media_type,
|
msg, transfer_history = self.__get_transfer_his(media_type=media_type,
|
||||||
media_name=media_name,
|
media_name=media_name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user