1
0
Fork 0
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:
David Lynch 2018-08-29 23:04:17 -05:00 committed by GitHub
parent a151f02c84
commit 6c8ac39d64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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