add repeat
This commit is contained in:
parent
3b5be6a12d
commit
837e9c608b
@ -126,7 +126,7 @@ class baseComic:
|
|||||||
ci.writeComicInfoXML(chapter_name)
|
ci.writeComicInfoXML(chapter_name)
|
||||||
is_next = CBZUtils.nextCBZ(list_img)
|
is_next = CBZUtils.nextCBZ(list_img)
|
||||||
repeat = 1
|
repeat = 1
|
||||||
while is_next and repeat <= 5 and not CBZUtils.updateOldCBZ(files_name):
|
while is_next and repeat <= 10 and not CBZUtils.updateOldCBZ(files_name):
|
||||||
ntfy.sendMsg(f"{book_name} {chapter_name} 下载中")
|
ntfy.sendMsg(f"{book_name} {chapter_name} 下载中")
|
||||||
download_images(list_img,ci.getDirComicChapter(), files_name=files_name,concurrency=10,timeout=20)
|
download_images(list_img,ci.getDirComicChapter(), files_name=files_name,concurrency=10,timeout=20)
|
||||||
equ_next = len(",".join(os.listdir(ci.getDirComicChapter())).split(".jpg"))-1 == len(list_img)
|
equ_next = len(",".join(os.listdir(ci.getDirComicChapter())).split(".jpg"))-1 == len(list_img)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user