mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-10-01 23:01:23 +02:00
Compare commits
2 Commits
dd5dcf6e1c
...
dd9256d832
Author | SHA1 | Date | |
---|---|---|---|
|
dd9256d832 | ||
|
667305ebfe |
|
@ -515,7 +515,7 @@ class FacebookIE(InfoExtractor):
|
||||||
'uploader': uploader,
|
'uploader': uploader,
|
||||||
'uploader_id': uploader_data.get('id'),
|
'uploader_id': uploader_data.get('id'),
|
||||||
'timestamp': timestamp,
|
'timestamp': timestamp,
|
||||||
'thumbnails': [{'url': thumbnail}] if url_or_none(thumbnail) else [],
|
'thumbnail': thumbnail,
|
||||||
'view_count': parse_count(self._search_regex(
|
'view_count': parse_count(self._search_regex(
|
||||||
(r'\bviewCount\s*:\s*["\']([\d,.]+)', r'video_view_count["\']\s*:\s*(\d+)',),
|
(r'\bviewCount\s*:\s*["\']([\d,.]+)', r'video_view_count["\']\s*:\s*(\d+)',),
|
||||||
webpage, 'view count', default=None)),
|
webpage, 'view count', default=None)),
|
||||||
|
@ -680,11 +680,7 @@ class FacebookIE(InfoExtractor):
|
||||||
webpage_info['duration'] = video_info['duration']
|
webpage_info['duration'] = video_info['duration']
|
||||||
# preserve preferred_thumbnail in video info
|
# preserve preferred_thumbnail in video info
|
||||||
if video_info.get('thumbnail'):
|
if video_info.get('thumbnail'):
|
||||||
if not [x for x in webpage_info['thumbnails'] if video_info['thumbnail'].split('?')[0] in x['url']]:
|
webpage_info['thumbnail'] = video_info['thumbnail']
|
||||||
webpage_info['thumbnails'].append({
|
|
||||||
'url': video_info['thumbnail'],
|
|
||||||
'preference': 1
|
|
||||||
})
|
|
||||||
return merge_dicts(webpage_info, video_info)
|
return merge_dicts(webpage_info, video_info)
|
||||||
|
|
||||||
if not video_data:
|
if not video_data:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user