Skip to content

Commit

Permalink
fix #358
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Sep 1, 2023
1 parent 5dc11b0 commit 55c0611
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/chain/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def do_transfer(self, path: Path, meta: MetaBase = None,
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
Expand Down
5 changes: 4 additions & 1 deletion app/core/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@ def get_image(self, name: str):
"""
获取图片地址
"""
return getattr(self, f"{name}_path")
try:
return getattr(self, f"{name}_path")
except AttributeError:
return None

def set_category(self, cat: str):
"""
Expand Down

0 comments on commit 55c0611

Please sign in to comment.