mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-09-10 11:40:24 +08:00
Fix for unNew with & in chapter title.
This commit is contained in:
@@ -265,21 +265,22 @@ def reset_orig_chapters_epub(inputio,outfile):
|
||||
chapterorigtitle = None
|
||||
tag = soup.find('meta',{'name':'chapterorigtitle'})
|
||||
if tag:
|
||||
chapterorigtitle = tag['content'].replace('"','"')
|
||||
chapterorigtitle = tag['content'].replace('&','&').replace('"','"')
|
||||
|
||||
# toctitle is separate for add_chapter_numbers:toconly users.
|
||||
chaptertoctitle = None
|
||||
tag = soup.find('meta',{'name':'chaptertoctitle'})
|
||||
if tag:
|
||||
chaptertoctitle = tag['content'].replace('"','"')
|
||||
chaptertoctitle = tag['content'].replace('&','&').replace('"','"')
|
||||
elif chapterorigtitle:
|
||||
chaptertoctitle = chapterorigtitle
|
||||
|
||||
chaptertitle = None
|
||||
tag = soup.find('meta',{'name':'chaptertitle'})
|
||||
if tag:
|
||||
chaptertitle = tag['content'].replace('"','"')
|
||||
chaptertitle = tag['content'].replace('&','&').replace('"','"')
|
||||
|
||||
# logger.debug("chaptertitle:(%s) chapterorigtitle:(%s)"%(chaptertitle, chapterorigtitle))
|
||||
if chaptertitle and chapterorigtitle and chapterorigtitle != chaptertitle:
|
||||
origdata = data
|
||||
# print("\n%s\n%s\n"%(chapterorigtitle,chaptertitle))
|
||||
|
||||
Reference in New Issue
Block a user