mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
flake
This commit is contained in:
parent
caee5d2d0d
commit
41406fe8c1
@ -63,7 +63,6 @@ class TikTokIE(InfoExtractor):
|
|||||||
share_info = try_get(video_data, lambda x: x['shareMeta'], dict)
|
share_info = try_get(video_data, lambda x: x['shareMeta'], dict)
|
||||||
unique_id = str_or_none(author_info.get('uniqueId'))
|
unique_id = str_or_none(author_info.get('uniqueId'))
|
||||||
timestamp = try_get(video_info, lambda x: int(x['createTime']), int)
|
timestamp = try_get(video_info, lambda x: int(x['createTime']), int)
|
||||||
date = datetime.fromtimestamp(timestamp).strftime('%Y%m%d')
|
|
||||||
height = try_get(video_info, lambda x: x['video']['videoMeta']['height'], int)
|
height = try_get(video_info, lambda x: x['video']['videoMeta']['height'], int)
|
||||||
width = try_get(video_info, lambda x: x['video']['videoMeta']['width'], int)
|
width = try_get(video_info, lambda x: x['video']['videoMeta']['width'], int)
|
||||||
thumbnails = []
|
thumbnails = []
|
||||||
@ -96,7 +95,6 @@ class TikTokIE(InfoExtractor):
|
|||||||
'thumbnail': try_get(video_info, lambda x: x['covers'][0], str),
|
'thumbnail': try_get(video_info, lambda x: x['covers'][0], str),
|
||||||
'timestamp': timestamp,
|
'timestamp': timestamp,
|
||||||
'width': width,
|
'width': width,
|
||||||
'title': self._og_search_title(webpage),
|
|
||||||
'creator': str_or_none(author_info.get('nickName')),
|
'creator': str_or_none(author_info.get('nickName')),
|
||||||
'uploader': unique_id,
|
'uploader': unique_id,
|
||||||
'uploader_id': str_or_none(author_info.get('userId')),
|
'uploader_id': str_or_none(author_info.get('userId')),
|
||||||
|
Loading…
Reference in New Issue
Block a user