fix
This commit is contained in:
1 parent
82d3694d7e
commit
57db571e5d
2 files changed
+6
-6
No files matched your search
+2
-2
@@ -61,9 +61,9 @@ class htmlUtils:
|
|||||||
url_text = res
|
url_text = res
|
||||||
if type == "json":
|
if type == "json":
|
||||||
url_text = res.json()
|
url_text = res.json()
|
||||||
else:
|
cls.saveHtml(curl,res.text)
|
||||||
|
if type == None:
|
||||||
url_text = html.fromstring(res.text)
|
url_text = html.fromstring(res.text)
|
||||||
|
|
||||||
cls.saveHtml(curl,res.text)
|
cls.saveHtml(curl,res.text)
|
||||||
except:
|
except:
|
||||||
print(f'Retry! 第{count}次')
|
print(f'Retry! 第{count}次')
|
||||||
|
|||||||
@@ -86,10 +86,10 @@ class comicEntity:
|
|||||||
cls.count_chapter += 1
|
cls.count_chapter += 1
|
||||||
#一本漫画下载后等待
|
#一本漫画下载后等待
|
||||||
#清空文件夹
|
#清空文件夹
|
||||||
pathDirComic = comicInfo.getDirComic()
|
path_dir_comic = comicInfo.getDirComic()
|
||||||
if os.path.exists(pathDirComic):
|
if os.path.exists(path_dir_comic):
|
||||||
shutil.rmtree(pathDirComic)
|
shutil.rmtree(path_dir_comic)
|
||||||
if not sleep == None:
|
if sleep != None:
|
||||||
time.sleep(sleep)
|
time.sleep(sleep)
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in new issue
Block a user