diff --git a/app/chain/transfer.py b/app/chain/transfer.py index acd1c987..7bfc74a6 100644 --- a/app/chain/transfer.py +++ b/app/chain/transfer.py @@ -252,7 +252,7 @@ class TransferChain(ChainBase): continue # 汇总信息 - mkey = (file_mediainfo.tmdb_id, meta.begin_season) + mkey = (file_mediainfo.tmdb_id, file_meta.begin_season) if mkey not in medias: # 新增信息 metas[mkey] = file_meta diff --git a/app/core/context.py b/app/core/context.py index a1877433..b56678cd 100644 --- a/app/core/context.py +++ b/app/core/context.py @@ -256,7 +256,10 @@ class MediaInfo: """ 获取图片地址 """ - return getattr(self, f"{name}_path") + try: + return getattr(self, f"{name}_path") + except AttributeError: + return None def set_category(self, cat: str): """