youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit ec05fee43acc49f4aded253e7072683b268a7965
parent b50e3bc67fd864bbb14ed4ccf3f0d29e1ff3e1f0
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Tue, 16 Dec 2014 16:38:26 +0100

[brightcove] Add shorter URL scheme for other extractors

Diffstat:
Myoutube_dl/extractor/aljazeera.py | 9+++++----
Myoutube_dl/extractor/brightcove.py | 2+-
2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/youtube_dl/extractor/aljazeera.py b/youtube_dl/extractor/aljazeera.py @@ -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', } diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py @@ -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 = [