fix
This commit is contained in:
@ -571,11 +571,6 @@ class MediaSyncDel(_PluginBase):
|
|||||||
stop_cnt = 0
|
stop_cnt = 0
|
||||||
error_cnt = 0
|
error_cnt = 0
|
||||||
for transferhis in transfer_history:
|
for transferhis in transfer_history:
|
||||||
title = transferhis.title
|
|
||||||
if title not in media_name:
|
|
||||||
logger.warn(
|
|
||||||
f"当前转移记录 {transferhis.id} {title} {transferhis.tmdbid} 与删除媒体{media_name}不符,防误删,暂不自动删除")
|
|
||||||
continue
|
|
||||||
image = transferhis.image
|
image = transferhis.image
|
||||||
year = transferhis.year
|
year = transferhis.year
|
||||||
|
|
||||||
@ -815,11 +810,6 @@ class MediaSyncDel(_PluginBase):
|
|||||||
stop_cnt = 0
|
stop_cnt = 0
|
||||||
error_cnt = 0
|
error_cnt = 0
|
||||||
for transferhis in transfer_history:
|
for transferhis in transfer_history:
|
||||||
title = transferhis.title
|
|
||||||
if title not in media_name:
|
|
||||||
logger.warn(
|
|
||||||
f"当前转移记录 {transferhis.id} {title} {transferhis.tmdbid} 与删除媒体{media_name}不符,防误删,暂不自动删除")
|
|
||||||
continue
|
|
||||||
image = transferhis.image
|
image = transferhis.image
|
||||||
# 0、删除转移记录
|
# 0、删除转移记录
|
||||||
self._transferhis.delete(transferhis.id)
|
self._transferhis.delete(transferhis.id)
|
||||||
|
Reference in New Issue
Block a user