thumbs
This commit is contained in:
parent
a1584c4f2e
commit
f180a07564
1 changed files with 3 additions and 4 deletions
|
@ -41,9 +41,8 @@ class Channel(Object):
|
|||
self.followers = int(d["channel_follower_count"])
|
||||
self.description = d["description"]
|
||||
self.tags = d["tags"]
|
||||
# TODO thumbnails
|
||||
self.thumbnails = d["thumbnails"]
|
||||
# TODO thumbnail from thumbnails
|
||||
self.thumbnails = [thumbnail["url"] for thumbnail in d["thumbnails"]]
|
||||
self.thumbnail = self.thumbnails[-1]
|
||||
self.uploader_id = d["uploader_id"]
|
||||
self.uploader = d["uploader"]
|
||||
# videos
|
||||
|
@ -83,7 +82,7 @@ class Video(Object):
|
|||
self.description_cut = d["description"]
|
||||
self.duration = int(d["duration"])
|
||||
self.thumbnails = [thumbnail["url"] for thumbnail in d["thumbnails"]]
|
||||
# TODO thumbnail from thumbnails
|
||||
self.thumbnail = self.thumbnails[-1]
|
||||
|
||||
def load_extra(self):
|
||||
self.at = datetime.now().strftime(TIMESTAMP)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue