aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/brightcove.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-04-02 21:31:21 +0100
committerremitamine <remitamine@gmail.com>2016-04-02 21:31:21 +0100
commit23576edbfcaa3d7f0283631516c82715a85c6856 (patch)
treef589646ef8aa951e8ae95d966374707471309aef /youtube_dl/extractor/brightcove.py
parent4d4cd35f485c652a39a631fbf3d40c9f4353e807 (diff)
[brightcove:legacy] skip None value for uploader_id
Diffstat (limited to 'youtube_dl/extractor/brightcove.py')
-rw-r--r--youtube_dl/extractor/brightcove.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py
index f9056f514..c718cf385 100644
--- a/youtube_dl/extractor/brightcove.py
+++ b/youtube_dl/extractor/brightcove.py
@@ -307,13 +307,14 @@ class BrightcoveLegacyIE(InfoExtractor):
playlist_title=playlist_info['mediaCollectionDTO']['displayName'])
def _extract_video_info(self, video_info):
+ publisher_id = video_info.get('publisherId')
info = {
'id': compat_str(video_info['id']),
'title': video_info['displayName'].strip(),
'description': video_info.get('shortDescription'),
'thumbnail': video_info.get('videoStillURL') or video_info.get('thumbnailURL'),
'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),
'timestamp': int_or_none(video_info.get('creationDate'), 1000),
}