fix
This commit is contained in:
1 parent
57db571e5d
commit
7dd1a86335
1 file changed
+1
-2
+1
-2
@@ -8,7 +8,6 @@ from requests.adapters import HTTPAdapter
|
|||||||
from utils.Ntfy import ntfy
|
from utils.Ntfy import ntfy
|
||||||
import re
|
import re
|
||||||
from utils.comic.PathStr import pathStr
|
from utils.comic.PathStr import pathStr
|
||||||
import json
|
|
||||||
|
|
||||||
class htmlUtils:
|
class htmlUtils:
|
||||||
headers = {'User-Agent': UserAgent().random}
|
headers = {'User-Agent': UserAgent().random}
|
||||||
@@ -17,7 +16,7 @@ class htmlUtils:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def getPathSaveHtml(cls,url,type=None):
|
def getPathSaveHtml(cls,url,type=None):
|
||||||
rstr = r"[\/\\\:\*\?\"\<\>\|\.]" # '/ \ : * ? " < > |'
|
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)
|
file_path = os.path.join(pathStr.base_html_data,file_url)
|
||||||
if type == "new":
|
if type == "new":
|
||||||
return file_path
|
return file_path
|
||||||
|
|||||||
Reference in new issue
Block a user