mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-10 19:37:25 +00:00
[brightcove:legacy] skip None value for uploader_id
This commit is contained in:
parent
4d4cd35f48
commit
23576edbfc
@ -307,13 +307,14 @@ class BrightcoveLegacyIE(InfoExtractor):
|
|||||||
playlist_title=playlist_info['mediaCollectionDTO']['displayName'])
|
playlist_title=playlist_info['mediaCollectionDTO']['displayName'])
|
||||||
|
|
||||||
def _extract_video_info(self, video_info):
|
def _extract_video_info(self, video_info):
|
||||||
|
publisher_id = video_info.get('publisherId')
|
||||||
info = {
|
info = {
|
||||||
'id': compat_str(video_info['id']),
|
'id': compat_str(video_info['id']),
|
||||||
'title': video_info['displayName'].strip(),
|
'title': video_info['displayName'].strip(),
|
||||||
'description': video_info.get('shortDescription'),
|
'description': video_info.get('shortDescription'),
|
||||||
'thumbnail': video_info.get('videoStillURL') or video_info.get('thumbnailURL'),
|
'thumbnail': video_info.get('videoStillURL') or video_info.get('thumbnailURL'),
|
||||||
'uploader': video_info.get('publisherName'),
|
'uploader': video_info.get('publisherName'),
|
||||||
'uploader_id': compat_str(video_info.get('publisherId')),
|
'uploader_id': compat_str(publisher_id) if publisher_id else None,
|
||||||
'duration': float_or_none(video_info.get('length'), 1000),
|
'duration': float_or_none(video_info.get('length'), 1000),
|
||||||
'timestamp': int_or_none(video_info.get('creationDate'), 1000),
|
'timestamp': int_or_none(video_info.get('creationDate'), 1000),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user