diff --git a/utils/HtmlUtils.py b/utils/HtmlUtils.py index d5456ed..26f7008 100644 --- a/utils/HtmlUtils.py +++ b/utils/HtmlUtils.py @@ -8,7 +8,6 @@ from requests.adapters import HTTPAdapter from utils.Ntfy import ntfy import re from utils.comic.PathStr import pathStr -import json class htmlUtils: headers = {'User-Agent': UserAgent().random} @@ -17,7 +16,7 @@ class htmlUtils: @classmethod def getPathSaveHtml(cls,url,type=None): rstr = r"[\/\\\:\*\?\"\<\>\|\.]" #  '/ \ : * ? " < > |' - file_url = re.sub(rstr, "_", url) + file_url = re.sub(rstr, "", url) file_path = os.path.join(pathStr.base_html_data,file_url) if type == "new": return file_path