diff --git a/src/sites/base.py b/src/sites/base.py index 311e8fb..d2cb0b2 100644 --- a/src/sites/base.py +++ b/src/sites/base.py @@ -143,7 +143,7 @@ class BaseSite(ABC): for cbz_path in list_cbz: first_cover_path = str(cbz_path).split(".")[0]+".jpg" if len(list_cover) == 1: - if FileNaming().file_update_by_date(first_cover_path): + if FileNaming().file_update_by_date(first_cover_path, day=30): shutil.copy(list_cover[0].path, first_cover_path) logger.info(f"{list_cover[0].path} ==> {first_cover_path} 已复制") continue @@ -152,7 +152,7 @@ class BaseSite(ABC): cover_path = cover.path if os.path.exists(first_cover_path): os.remove(first_cover_path) new_cover_path = FileNaming().cover_format_path(str(cbz_path).split(".")[0]+".jpg", count=cover_count) - if FileNaming().file_update_by_date(new_cover_path): + if FileNaming().file_update_by_date(new_cover_path, day=30): shutil.copy(cover_path, new_cover_path) logger.info(f"{cover_path} ==> {new_cover_path} 已复制") cover_count += 1