添加漫画下载完成后清空文件夹
This commit is contained in:
parent
7c8d546a25
commit
7cf795b660
@ -72,6 +72,10 @@ class comicEntity:
|
|||||||
comicEntity.comicChapter(href,scramble=True,sleep=random.uniform(15,25))
|
comicEntity.comicChapter(href,scramble=True,sleep=random.uniform(15,25))
|
||||||
count_chapter += 1
|
count_chapter += 1
|
||||||
#一本漫画下载后等待
|
#一本漫画下载后等待
|
||||||
|
#清空文件夹
|
||||||
|
pathDirComic = comicInfo.getDirComic()
|
||||||
|
if os.path.exists(pathDirComic):
|
||||||
|
shutil.rmtree(pathDirComic)
|
||||||
if not sleep == None:
|
if not sleep == None:
|
||||||
time.sleep(sleep)
|
time.sleep(sleep)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user