1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2025-12-06 16:33:16 +01:00

AO3: author notes should be included

This commit is contained in:
David Lynch 2017-05-28 01:15:04 -05:00
parent 529b85c7a6
commit ea3432bc99

View file

@ -52,7 +52,14 @@ class ArchiveOfOurOwn(Site):
for landmark in content.find_all(class_='landmark'):
landmark.decompose()
return content.prettify()
# TODO: Maybe these should be footnotes instead?
notes = soup.select('#chapters .end.notes')
if notes:
notes = notes[0]
for landmark in notes.find_all(class_='landmark'):
landmark.decompose()
return content.prettify() + (notes and notes.prettify() or '')
@register