fix
This commit is contained in:
parent
2ad55af141
commit
4927a40c31
@ -143,7 +143,7 @@ class BaseSite(ABC):
|
|||||||
for cbz_path in list_cbz:
|
for cbz_path in list_cbz:
|
||||||
first_cover_path = str(cbz_path).split(".")[0]+".jpg"
|
first_cover_path = str(cbz_path).split(".")[0]+".jpg"
|
||||||
if len(list_cover) == 1:
|
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)
|
shutil.copy(list_cover[0].path, first_cover_path)
|
||||||
logger.info(f"{list_cover[0].path} ==> {first_cover_path} 已复制")
|
logger.info(f"{list_cover[0].path} ==> {first_cover_path} 已复制")
|
||||||
continue
|
continue
|
||||||
@ -152,7 +152,7 @@ class BaseSite(ABC):
|
|||||||
cover_path = cover.path
|
cover_path = cover.path
|
||||||
if os.path.exists(first_cover_path): os.remove(first_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)
|
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)
|
shutil.copy(cover_path, new_cover_path)
|
||||||
logger.info(f"{cover_path} ==> {new_cover_path} 已复制")
|
logger.info(f"{cover_path} ==> {new_cover_path} 已复制")
|
||||||
cover_count += 1
|
cover_count += 1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user