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

Fix spacing

...I'm bad at the web interface.
This commit is contained in:
David Lynch 2018-08-29 23:01:43 -05:00 committed by GitHub
parent 69c9c21f47
commit a151f02c84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,8 +37,6 @@ class RoyalRoad(Site):
for chapter in soup.select('#chapters tbody tr[data-url]'):
chapter_url = str(urllib.parse.urljoin(story.url, str(chapter.get('data-url'))))
# Have to get exact publishing time from the chapter page
chapter_soup = self._soup(chapter_url)
contents, updated = self._chapter(chapter_url)
story.add(Chapter(title=chapter.find('a', href=True).string.strip(), contents=contents, date=updated))
@ -54,7 +52,7 @@ class RoyalRoad(Site):
# TODO: this could be more robust, and I don't know if there's post-chapter notes anywhere as well.
author_note = soup.find('div', class_='author-note-portlet')
updated = int(soup.find(class_="profile-info").find('time').get('unixtime'))
return (author_note and (author_note.prettify() + '<hr/>') or '') + content.prettify(), updated