This commit is contained in:
jxxghp 2023-09-11 21:14:49 +08:00
parent edcec114ae
commit df5c364185
2 changed files with 4 additions and 1 deletions

View File

@ -587,6 +587,8 @@ class FileTransferModule(_ModuleBase):
else:
# 电视剧取上两级目录
media_path = media_path.parent.parent
# 检查媒体文件夹是否存在
if not media_path.exists():
continue

View File

@ -447,7 +447,8 @@ class TmdbHelper:
ret_info = multi
break
# 类型变更
if ret_info:
if (ret_info
and not isinstance(ret_info.get("media_type"), MediaType)):
ret_info['media_type'] = MediaType.MOVIE if ret_info.get("media_type") == "movie" else MediaType.TV
return ret_info