mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-03 06:34:04 +01:00
Paranoia check for legend_spoilers feature in royalroadl
This commit is contained in:
parent
04e9a27c06
commit
2db8e070b4
1 changed files with 3 additions and 2 deletions
|
|
@ -120,8 +120,9 @@ class RoyalRoadAdapter(BaseSiteAdapter):
|
|||
div.name='fieldset'
|
||||
legend = topsoup.new_tag('legend')
|
||||
smalltext = div.find('div',class_='smalltext')
|
||||
legend.string = stripHTML(smalltext)
|
||||
smalltext.extract()
|
||||
if smalltext:
|
||||
legend.string = stripHTML(smalltext)
|
||||
smalltext.extract()
|
||||
div.insert(0,legend)
|
||||
for inner in div.find_all('div',class_='spoiler-inner'):
|
||||
del inner['style']
|
||||
|
|
|
|||
Loading…
Reference in a new issue