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:
parent
529b85c7a6
commit
ea3432bc99
1 changed files with 8 additions and 1 deletions
|
|
@ -52,7 +52,14 @@ class ArchiveOfOurOwn(Site):
|
||||||
for landmark in content.find_all(class_='landmark'):
|
for landmark in content.find_all(class_='landmark'):
|
||||||
landmark.decompose()
|
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
|
@register
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue