add remote transfer

This commit is contained in:
jxxghp
2024-06-23 09:04:08 +08:00
parent e06e00204b
commit 1e1f80b6d9
8 changed files with 543 additions and 276 deletions

View File

@ -39,12 +39,16 @@ class DoubanScraper:
return None
@staticmethod
def get_metadata_img(mediainfo: MediaInfo) -> Optional[dict]:
def get_metadata_img(mediainfo: MediaInfo, season: int = None) -> Optional[dict]:
"""
获取图片内容
:param mediainfo: 媒体信息
:param season: 季号
"""
ret_dict = {}
if season:
# 豆瓣无季图片
return {}
if mediainfo.poster_path:
ret_dict[f"poster{Path(mediainfo.poster_path).suffix}"] = mediainfo.poster_path
if mediainfo.backdrop_path: