fix: 增加入参判断

This commit is contained in:
zhanglijun
2024-11-26 22:25:42 +08:00
parent 132fde2308
commit 7f2c6ef167

View File

@@ -549,7 +549,8 @@ class MediaChain(ChainBase, metaclass=Singleton):
content = __download_image(image_url)
# 保存图片文件到剧集目录
if content:
parent = self.storagechain.get_parent_item(fileitem)
if not parent:
parent = self.storagechain.get_parent_item(fileitem)
__save_file(_fileitem=parent, _path=image_path, _content=content)
# 判断当前目录是不是剧集根目录
if not season_meta.season: