]> git.bitcoin.ninja Git - youtube-dl/commitdiff
no .get('..',None)
authorfnord <fnord@fnord.mobi>
Sat, 20 Jun 2015 13:24:02 +0000 (08:24 -0500)
committerfnord <fnord@fnord.mobi>
Sat, 20 Jun 2015 13:24:02 +0000 (08:24 -0500)
youtube_dl/extractor/bbccouk.py

index ea682fb6f2785919e88dc6de03e25ca899d1c29f..de4d7f9c0074823e2e0c8e7a7d9034c5e2eb66cf 100644 (file)
@@ -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)