From a317c35eabf2e2a193e083ef170283140146b464 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 6 Dec 2023 13:08:15 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=9B=86=E5=9B=BE=E7=89=87=E5=91=BD?= =?UTF-8?q?=E5=90=8D?= 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 1727bb10..4e6d0cdb 100644 --- a/app/modules/themoviedb/scraper.py +++ b/app/modules/themoviedb/scraper.py @@ -120,10 +120,11 @@ 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) if episode_image: self.__save_image( f"https://{settings.TMDB_IMAGE_DOMAIN}/t/p/original{episode_image}", - file_path.with_suffix(Path(episode_image).suffix)) + image_path) except Exception as e: logger.error(f"{file_path} 刮削失败:{str(e)}")