From 843fbc83f4ed6b54610d29657f83f0d1d38dc9af Mon Sep 17 00:00:00 2001 From: thsrite Date: Fri, 5 Jan 2024 12:53:47 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=9B=86=E5=A6=82=E6=9E=9C=E5=B8=A6?= =?UTF-8?q?=E6=9C=89.=E4=BC=9A=E5=88=AE=E5=89=8A=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/themoviedb/scraper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/modules/themoviedb/scraper.py b/app/modules/themoviedb/scraper.py index 5fff3b2a..f60b3631 100644 --- a/app/modules/themoviedb/scraper.py +++ b/app/modules/themoviedb/scraper.py @@ -135,7 +135,8 @@ class TmdbScraper: file_path=file_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()): self.__save_image( f"https://{settings.TMDB_IMAGE_DOMAIN}/t/p/original{episode_image}",