添加漫画下载完成后清空文件夹

This commit is contained in:
caiwx86 2022-12-06 20:16:43 +08:00
parent 7c8d546a25
commit 7cf795b660

View File

@ -72,6 +72,10 @@ class comicEntity:
comicEntity.comicChapter(href,scramble=True,sleep=random.uniform(15,25))
count_chapter += 1
#一本漫画下载后等待
#清空文件夹
pathDirComic = comicInfo.getDirComic()
if os.path.exists(pathDirComic):
shutil.rmtree(pathDirComic)
if not sleep == None:
time.sleep(sleep)