Skip to content

Commit

Permalink
[brightcove:legacy] skip None value for uploader_id
Browse files Browse the repository at this point in the history
  • Loading branch information
remitamine committed Apr 2, 2016
1 parent 4d4cd35 commit 23576ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl/extractor/brightcove.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,14 @@ def _get_playlist_info(self, player_key):
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),
}
Expand Down

0 comments on commit 23576ed

Please sign in to comment.