mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-06 08:52:55 +01:00
Remove Entities, fix bar ampersands in story & author names.
This commit is contained in:
parent
ca4b09d69d
commit
466d5f4ee3
1 changed files with 2 additions and 2 deletions
|
|
@ -134,11 +134,11 @@ class EPubFanficWriter(FanficWriter):
|
|||
def __init__(self, base, name, author, inmemory=False, compress=True):
|
||||
self.basePath = base
|
||||
self.name = re.sub('&\#[0-9]+;', '_', name.replace(" ", "_").replace(":","_"))
|
||||
self.storyTitle = name
|
||||
self.storyTitle = self._removeEntities(name)
|
||||
self.directory = self.basePath + '/' + re.sub('[^a-zA-Z0-9_\'-]+','',self.name)
|
||||
|
||||
self.inmemory = inmemory
|
||||
self.authorName = author
|
||||
self.authorName = self._removeEntities(author)
|
||||
|
||||
self.files = {}
|
||||
self.chapters = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue