From aae46128c564c209a93fbebf54fd42ce88e87722 Mon Sep 17 00:00:00 2001 From: Yuukiy <76897913+Yuukiy@users.noreply.github.com> Date: Sun, 25 Feb 2024 17:08:42 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20#205:=20=E6=B7=BB=E5=8A=A0=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E6=8E=A7=E5=88=B6=E6=98=AF=E5=90=A6=E9=87=87=E7=94=A8?= =?UTF-8?q?javdb=E7=9A=84=E5=B0=81=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JavSP.py | 8 ++++++++ core/config.ini | 2 ++ 2 files changed, 10 insertions(+) diff --git a/JavSP.py b/JavSP.py index 101e6b708..a515b495e 100644 --- a/JavSP.py +++ b/JavSP.py @@ -202,6 +202,14 @@ def info_summary(movie: Movie, all_info: Dict[str, MovieInfo]): final_info.dvdid = final_id else: final_info.cid = final_id + # javdb封面有水印,优先采用其他站点的封面 + javdb_cover = getattr(all_info.get('javdb'), 'cover', None) + if javdb_cover is not None: + if cfg.Crawler.ignore_javdb_cover == 'auto': + covers.remove(javdb_cover) + covers.append(javdb_cover) + elif cfg.getboolean('Crawler', 'ignore_javdb_cover'): + covers.remove(javdb_cover) setattr(final_info, 'covers', covers) setattr(final_info, 'big_covers', big_covers) # 对cover和big_cover赋值,避免后续检查必须字段时出错 diff --git a/core/config.ini b/core/config.ini index 816fcea20..9133f779d 100644 --- a/core/config.ini +++ b/core/config.ini @@ -51,6 +51,8 @@ title__remove_actor = yes title__chinese_first = yes # 刮削一部电影后的等待时间(秒,设置为0禁用此功能) sleep_after_scraping = 1 +# 禁用javdb的封面(auto/yes/no, 默认auto: 如果能从别的站点获得封面则不用javdb的以避免水印) +ignore_javdb_cover = auto # 各个站点的免代理地址。地址失效时软件会自动尝试获取新地址,你也可以手动设置