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.followers = int(d["channel_follower_count"])
|
||||||
self.description = d["description"]
|
self.description = d["description"]
|
||||||
self.tags = d["tags"]
|
self.tags = d["tags"]
|
||||||
# TODO thumbnails
|
self.thumbnails = [thumbnail["url"] for thumbnail in d["thumbnails"]]
|
||||||
self.thumbnails = d["thumbnails"]
|
self.thumbnail = self.thumbnails[-1]
|
||||||
# TODO thumbnail from thumbnails
|
|
||||||
self.uploader_id = d["uploader_id"]
|
self.uploader_id = d["uploader_id"]
|
||||||
self.uploader = d["uploader"]
|
self.uploader = d["uploader"]
|
||||||
# videos
|
# videos
|
||||||
|
@ -83,7 +82,7 @@ class Video(Object):
|
||||||
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.thumbnails = [thumbnail["url"] for thumbnail in d["thumbnails"]]
|
||||||
# TODO thumbnail from thumbnails
|
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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue