From 7dd1a86335ee98d0143623ec4f0946d947fcd9a9 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Tue, 20 Dec 2022 17:40:15 +0800 Subject: [PATCH] fix --- utils/HtmlUtils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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