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.description_cut = d["description"]
|
||||
self.duration = int(d["duration"])
|
||||
self.thumbnails = [thumbnail["url"] for thumbnail in d["thumbnails"]]
|
||||
self.thumbnail = self.thumbnails[-1]
|
||||
self.thumbnail = d["thumbnails"][-1]["url"]
|
||||
|
||||
def load_extra(self):
|
||||
self.at = datetime.now().strftime(TIMESTAMP)
|
||||
d = extract_video(self.uid)
|
||||
# TODO formats
|
||||
# TODO thumbnail from thumbnails
|
||||
thumbnail = d["thumbnails"][-1]["url"]
|
||||
# TODO compare existing thumbnail
|
||||
self.description = d["description"]
|
||||
# TODO channel_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue