Browse Source

[brightcove] Add shorter URL scheme for other extractors

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
ec05fee43a
2 changed files with 6 additions and 5 deletions
  1. +5
    -4
      youtube_dl/extractor/aljazeera.py
  2. +1
    -1
      youtube_dl/extractor/brightcove.py

+ 5
- 4
youtube_dl/extractor/aljazeera.py View File

@ -24,9 +24,10 @@ class AlJazeeraIE(InfoExtractor):
return { return {
'_type': 'url', '_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', 'ie_key': 'Brightcove',
} }

+ 1
- 1
youtube_dl/extractor/brightcove.py View File

@ -25,7 +25,7 @@ from ..utils import (
class BrightcoveIE(InfoExtractor): 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' _FEDERATED_URL_TEMPLATE = 'http://c.brightcove.com/services/viewer/htmlFederated?%s'
_TESTS = [ _TESTS = [


Loading…
Cancel
Save