thumb
This commit is contained in:
parent
f180a07564
commit
35ab34c67d
1 changed files with 2 additions and 3 deletions
|
@ -81,14 +81,13 @@ class Video(Object):
|
||||||
self.title = d["title"]
|
self.title = d["title"]
|
||||||
self.description_cut = d["description"]
|
self.description_cut = d["description"]
|
||||||
self.duration = int(d["duration"])
|
self.duration = int(d["duration"])
|
||||||
self.thumbnails = [thumbnail["url"] for thumbnail in d["thumbnails"]]
|
self.thumbnail = d["thumbnails"][-1]["url"]
|
||||||
self.thumbnail = self.thumbnails[-1]
|
|
||||||
|
|
||||||
def load_extra(self):
|
def load_extra(self):
|
||||||
self.at = datetime.now().strftime(TIMESTAMP)
|
self.at = datetime.now().strftime(TIMESTAMP)
|
||||||
d = extract_video(self.uid)
|
d = extract_video(self.uid)
|
||||||
# TODO formats
|
# TODO formats
|
||||||
# TODO thumbnail from thumbnails
|
thumbnail = d["thumbnails"][-1]["url"]
|
||||||
# TODO compare existing thumbnail
|
# TODO compare existing thumbnail
|
||||||
self.description = d["description"]
|
self.description = d["description"]
|
||||||
# TODO channel_id
|
# TODO channel_id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue