Merge pull request #1314 from thsrite/main

This commit is contained in:
jxxghp 2024-01-05 13:00:38 +08:00 committed by GitHub
commit 6fa50101a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,8 @@ class TmdbScraper:
file_path=file_path) file_path=file_path)
# 集的图片 # 集的图片
episode_image = episodeinfo.get("still_path") episode_image = episodeinfo.get("still_path")
image_path = file_path.with_name(file_path.stem + "-thumb").with_suffix(Path(episode_image).suffix) image_path = file_path.with_name(file_path.stem + "-thumb.jpg").with_suffix(
Path(episode_image).suffix)
if episode_image and (self._force_img or not image_path.exists()): if episode_image and (self._force_img or not image_path.exists()):
self.__save_image( self.__save_image(
f"https://{settings.TMDB_IMAGE_DOMAIN}/t/p/original{episode_image}", f"https://{settings.TMDB_IMAGE_DOMAIN}/t/p/original{episode_image}",