diff options
author | fnord <fnord@fnord.mobi> | 2015-06-20 08:24:02 -0500 |
---|---|---|
committer | fnord <fnord@fnord.mobi> | 2015-06-20 08:24:02 -0500 |
commit | 75ab0ebcf593ec91a46d83e69854ffa313d33309 (patch) | |
tree | 6097d9ef2d6e5c709914797d41c544cd095131d0 /youtube_dl/extractor/bbccouk.py | |
parent | 10273d6e0846cd8f3762e3777712d5cd2a0cafcd (diff) |
no .get('..',None)
Diffstat (limited to 'youtube_dl/extractor/bbccouk.py')
-rw-r--r-- | youtube_dl/extractor/bbccouk.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/extractor/bbccouk.py b/youtube_dl/extractor/bbccouk.py index ea682fb6f..de4d7f9c0 100644 --- a/youtube_dl/extractor/bbccouk.py +++ b/youtube_dl/extractor/bbccouk.py @@ -457,15 +457,15 @@ class BBCNewsIE(BBCCoUkIE): for ent in matches: jent = self._parse_json(ent,list_id) - programme_id = jent.get('externalId',None) - xml_url = jent.get('href', None) + programme_id = jent.get('externalId') + xml_url = jent.get('href') title = jent['caption'] - duration = parse_duration(jent.get('duration',None)) + duration = parse_duration(jent.get('duration') description = list_title + ' - ' + jent.get('caption','') thumbnail = None if jent.has_key('image'): - thumbnail=jent['image'].get('href',None) + thumbnail=jent['image'].get('href') if programme_id: formats, subtitles = self._download_media_selector(programme_id) |