[brightcove] Recognize another player ID
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 15 Jan 2017 16:06:52 +0000 (00:06 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sun, 15 Jan 2017 16:06:52 +0000 (00:06 +0800)
Closes #11688

ChangeLog
youtube_dl/extractor/brightcove.py
youtube_dl/extractor/generic.py

index 029d13426f34ab4f6c8c984ab41c1ea0e8a43d04..2e0ddd4f636b0b60dd8c0e760f97917adb46a5f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 version <unreleased>
 
 Extractors
++ [brightcove] Recognize another player ID pattern (#11688)
 + [niconico] Support login via cookies (#7968)
 
 version 2017.01.14
index 2e56d1df9ac42eb7ad325b16f22bfcdbaa5e2530..5c6e99da134efe150962dd979cbf36e391527d3a 100644 (file)
@@ -179,7 +179,7 @@ class BrightcoveLegacyIE(InfoExtractor):
 
         params = {}
 
-        playerID = find_param('playerID')
+        playerID = find_param('playerID') or find_param('playerId')
         if playerID is None:
             raise ExtractorError('Cannot find player ID')
         params['playerID'] = playerID
index ac29ec600f180e6649c707b0a9c1b2a341e24301..a3ac7d26bd79d4719edfbd3f273d3297d7d6d2a5 100644 (file)
@@ -422,6 +422,26 @@ class GenericIE(InfoExtractor):
                 'skip_download': True,  # m3u8 download
             },
         },
+        {
+            # Brightcove with alternative playerID key
+            'url': 'http://www.nature.com/nmeth/journal/v9/n7/fig_tab/nmeth.2062_SV1.html',
+            'info_dict': {
+                'id': 'nmeth.2062_SV1',
+                'title': 'Simultaneous multiview imaging of the Drosophila syncytial blastoderm : Quantitative high-speed imaging of entire developing embryos with simultaneous multiview light-sheet microscopy : Nature Methods : Nature Research',
+            },
+            'playlist': [{
+                'info_dict': {
+                    'id': '2228375078001',
+                    'ext': 'mp4',
+                    'title': 'nmeth.2062-sv1',
+                    'description': 'nmeth.2062-sv1',
+                    'timestamp': 1363357591,
+                    'upload_date': '20130315',
+                    'uploader': 'Nature Publishing Group',
+                    'uploader_id': '1964492299001',
+                },
+            }],
+        },
         # ooyala video
         {
             'url': 'http://www.rollingstone.com/music/videos/norwegian-dj-cashmere-cat-goes-spartan-on-with-me-premiere-20131219',