mirror of
https://github.com/kemayo/leech
synced 2025-12-06 16:33:16 +01:00
Arbitrary handler had misplaced url arg
This commit is contained in:
parent
3a24cad826
commit
dc0d2162fb
1 changed files with 3 additions and 3 deletions
|
|
@ -47,7 +47,8 @@ class Arbitrary(Site):
|
||||||
|
|
||||||
story = Section(
|
story = Section(
|
||||||
title=definition.title,
|
title=definition.title,
|
||||||
author=definition.author
|
author=definition.author,
|
||||||
|
url=url
|
||||||
)
|
)
|
||||||
|
|
||||||
if definition.chapter_selector:
|
if definition.chapter_selector:
|
||||||
|
|
@ -58,8 +59,7 @@ class Arbitrary(Site):
|
||||||
title=chapter.string,
|
title=chapter.string,
|
||||||
contents=self._chapter(chapter_url, definition),
|
contents=self._chapter(chapter_url, definition),
|
||||||
# TODO: better date detection
|
# TODO: better date detection
|
||||||
date=datetime.datetime.now(),
|
date=datetime.datetime.now()
|
||||||
url=url
|
|
||||||
))
|
))
|
||||||
else:
|
else:
|
||||||
story.add(Chapter(
|
story.add(Chapter(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue