mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-07 08:33:15 +01:00
Fix for & in chapter title.
This commit is contained in:
parent
6ae424d3ff
commit
a31d58bca3
1 changed files with 4 additions and 1 deletions
|
|
@ -173,7 +173,10 @@ class BaseSiteAdapter(Requestable):
|
|||
title = stripHTML(title,remove_all_entities=False)
|
||||
# Put the basic 3 html entities back in.
|
||||
# bs4 is 'helpfully' removing them.
|
||||
title = title.replace('&','&').replace('<','<').replace('>','>')
|
||||
## Now with more checking because bs4 is apparently
|
||||
## not *always* removing them now.
|
||||
if '&' in title and '&' not in title:
|
||||
title = title.replace('&','&').replace('<','<').replace('>','>')
|
||||
else:
|
||||
## A default value for when there's no chapter
|
||||
## title. Cropped up once with adapter_novelonlinefullcom
|
||||
|
|
|
|||
Loading…
Reference in a new issue