mirror of
https://github.com/kemayo/leech
synced 2025-12-06 16:33:16 +01:00
AO3: fallback for single-chapter works
This commit is contained in:
parent
64fbdac4cd
commit
2103f37cfb
1 changed files with 2 additions and 1 deletions
|
|
@ -73,7 +73,8 @@ class ArchiveOfOurOwn(Site):
|
|||
|
||||
story.add(Chapter(
|
||||
title=link.string,
|
||||
contents=self._chapter(soup.find(id=f'chapter-{index + 1}')),
|
||||
# the `or soup` fallback covers single-chapter works
|
||||
contents=self._chapter(soup.find(id=f'chapter-{index + 1}') or soup),
|
||||
date=updated
|
||||
))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue