mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-24 09:44:28 +01:00
AO3: Don't assume chapter userstuff module always present.
This commit is contained in:
parent
a37588a8f7
commit
dd2c1a48b5
1 changed files with 5 additions and 4 deletions
|
|
@ -532,10 +532,11 @@ class ArchiveOfOurOwnOrgAdapter(BaseSiteAdapter):
|
|||
head_notes_div.append(chapnotes)
|
||||
|
||||
text = chapter_dl_soup.find('div', {'class' : "userstuff module"})
|
||||
chtext = text.find('h3', {'class' : "landmark heading"})
|
||||
if chtext:
|
||||
chtext.extract()
|
||||
save_chapter.append(text)
|
||||
if text:
|
||||
chtext = text.find('h3', {'class' : "landmark heading"})
|
||||
if chtext:
|
||||
chtext.extract()
|
||||
save_chapter.append(text)
|
||||
|
||||
foot_notes_div = append_tag(save_chapter,'div',classes="fff_chapter_notes fff_foot_notes")
|
||||
## Can appear on every chapter
|
||||
|
|
|
|||
Loading…
Reference in a new issue