mirror of
https://github.com/kemayo/leech
synced 2026-02-14 18:52:32 +01:00
fromtimestamp still needed
My bad.
This commit is contained in:
parent
a151f02c84
commit
6c8ac39d64
1 changed files with 3 additions and 1 deletions
|
|
@ -53,6 +53,8 @@ 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'))
|
||||
updated = datetime.datetime.fromtimestamp(
|
||||
int(soup.find(class_="profile-info").find('time').get('unixtime'))
|
||||
)
|
||||
|
||||
return (author_note and (author_note.prettify() + '<hr/>') or '') + content.prettify(), updated
|
||||
|
|
|
|||
Loading…
Reference in a new issue