[brightcove] Add shorter URL scheme for other extractors
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 16 Dec 2014 15:38:26 +0000 (16:38 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 16 Dec 2014 15:38:26 +0000 (16:38 +0100)
youtube_dl/extractor/aljazeera.py
youtube_dl/extractor/brightcove.py

index ace5ec19d4907297a30f61c95daaec6f7bad7de9..380d429d6f999116a792b987c5d3ec7c98b76de4 100644 (file)
@@ -24,9 +24,10 @@ class AlJazeeraIE(InfoExtractor):
 
         return {
             '_type': 'url',
-            'url':
-                'http://c.brightcove.com/services/viewer/federated_f9?'
-                '&playerKey=AQ~~%2CAAAAmtVJIFk~%2CTVGOQ5ZTwJbeMWnq5d_H4MOM57xfzApc'
-                '&%40videoPlayer={0}'.format(brightcove_id),
+            'url': (
+                'brightcove:'
+                'playerKey=AQ~~%2CAAAAmtVJIFk~%2CTVGOQ5ZTwJbeMWnq5d_H4MOM57xfzApc'
+                '&%40videoPlayer={0}'.format(brightcove_id)
+            ),
             'ie_key': 'Brightcove',
         }
index 1eca0047076f422bb77329e5b83657df44002738..003152c4e6d6ec9880a54016870e41e42635f41c 100644 (file)
@@ -25,7 +25,7 @@ from ..utils import (
 
 
 class BrightcoveIE(InfoExtractor):
-    _VALID_URL = r'https?://.*brightcove\.com/(services|viewer).*?\?(?P<query>.*)'
+    _VALID_URL = r'(?:https?://.*brightcove\.com/(services|viewer).*?\?|brightcove:)(?P<query>.*)'
     _FEDERATED_URL_TEMPLATE = 'http://c.brightcove.com/services/viewer/htmlFederated?%s'
 
     _TESTS = [