Skip to content

Commit

Permalink
re issue windows path
Browse files Browse the repository at this point in the history
  • Loading branch information
safirex committed Nov 13, 2022
1 parent 2505d46 commit 5ee5097
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 239 deletions.
239 changes: 0 additions & 239 deletions baseCode/src/main_functions.py

This file was deleted.

4 changes: 4 additions & 0 deletions src/Downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ def validateTitle(self, title):
new_title = re.sub(rstr, "_", title)
return new_title
def parseTitle(self, TocHTML) -> str:

writer = re.findall(r'<p class="novel_title">(.*?)</p>', TocHTML, re.S)
print('title = '+str(writer))
return writer[0]
Expand Down Expand Up @@ -562,6 +563,7 @@ def checkFileName(str):
str = str.replace('!', '')
str = str.replace(':', '')
str = str.replace('"', '')
str = str.replace('\"', '')
str = str.replace('*', '')
str = str.replace('/', '')
str = str.replace('\\', '')
Expand All @@ -573,6 +575,8 @@ def checkFileName(str):
str = str[:250 - len('./novel_list/')]
return str

def checkFilePathLength(str):
return str[:200]

class WuxiaWorldNovel(Novel):
def __init__(self, Novel):
Expand Down

0 comments on commit 5ee5097

Please sign in to comment.