fix
This commit is contained in:
parent
fa23012adb
commit
b899b23d04
@ -353,7 +353,7 @@ class TransferChain(ChainBase):
|
||||
transfer_info.target_path = transfer_info.target_path.parent
|
||||
# 刮削
|
||||
self.scrape_metadata(path=transfer_info.target_path, mediainfo=media)
|
||||
# 刷新媒体库
|
||||
# 刷新媒体库,根目录或季目录
|
||||
self.refresh_mediaserver(mediainfo=media, file_path=transfer_info.target_path)
|
||||
# 发送通知
|
||||
se_str = None
|
||||
|
@ -22,7 +22,7 @@ class TmdbScraper:
|
||||
|
||||
def gen_scraper_files(self, mediainfo: MediaInfo, file_path: Path):
|
||||
"""
|
||||
生成刮削文件
|
||||
生成刮削文件,包括NFO和图片,传入路径为文件路径
|
||||
:param mediainfo: 媒体信息
|
||||
:param file_path: 文件路径或者目录路径
|
||||
"""
|
||||
@ -113,10 +113,11 @@ class TmdbScraper:
|
||||
episode=meta.begin_episode,
|
||||
file_path=file_path)
|
||||
# 集的图片
|
||||
if episodeinfo.get('still_path'):
|
||||
episode_image = episodeinfo.get("still_path")
|
||||
if episode_image:
|
||||
self.__save_image(
|
||||
f"https://{settings.TMDB_IMAGE_DOMAIN}/t/p/original{episodeinfo.get('still_path')}",
|
||||
file_path.with_suffix(Path(episodeinfo.get('still_path')).suffix))
|
||||
f"https://{settings.TMDB_IMAGE_DOMAIN}/t/p/original{episode_image}",
|
||||
file_path.with_suffix(Path(episode_image).suffix))
|
||||
except Exception as e:
|
||||
logger.error(f"{file_path} 刮削失败:{e}")
|
||||
|
||||
|
@ -312,8 +312,9 @@ class DirMonitor(_PluginBase):
|
||||
transferinfo=transferinfo
|
||||
)
|
||||
|
||||
# 刮削元数据
|
||||
self.chain.scrape_metadata(path=transferinfo.target_path, mediainfo=mediainfo)
|
||||
# 刮削元数据,根目录或季目录
|
||||
self.chain.scrape_metadata(path=transferinfo.target_path.parent,
|
||||
mediainfo=mediainfo)
|
||||
|
||||
"""
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user