Prefer externalId over non-mediaserver-specific hashkey for video id.
authorfnord <fnord@fnord.mobi>
Tue, 23 Jun 2015 06:08:07 +0000 (01:08 -0500)
committerfnord <fnord@fnord.mobi>
Tue, 23 Jun 2015 06:08:07 +0000 (01:08 -0500)
youtube_dl/extractor/bbc.py

index 310db9d1db7157e3164ed0df52e2641160f6bc93..fed344ea0b6003d63670299e293d60096d610adb 100644 (file)
@@ -540,7 +540,7 @@ class BBCNewsIE(BBCCoUkIE):
             self._sort_formats(formats)
 
             ret.append( {
-                'id': jent.get('programme_id',jent.get('id')),
+                'id': jent.get('id') if programme_id == None else programme_id,
                 'uploader': 'BBC News',
                 'upload_date': pubdate,
                 'title': title,