1 from .common
import InfoExtractor
4 class UKTVPlayIE(InfoExtractor
):
5 _VALID_URL
= r
'https?://uktvplay\.(?:uktv\.)?co\.uk/(?:.+?\?.*?\bvideo=|([^/]+/)*)(?P<id>\d+)'
7 'url': 'https://uktvplay.uktv.co.uk/shows/world-at-war/c/200/watch-online/?video=2117008346001',
12 'description': 'Pincers',
13 'uploader_id': '1242911124001',
14 'upload_date': '20130124',
15 'timestamp': 1359049267,
19 'skip_download': True,
21 'expected_warnings': ['Failed to download MPD manifest'],
23 'url': 'https://uktvplay.uktv.co.uk/shows/africa/watch-online/5983349675001',
24 'only_matching': True,
26 'url': 'https://uktvplay.co.uk/shows/hornby-a-model-world/series-1/episode-1/6276739790001?autoplaying=true',
27 'only_matching': True,
29 # BRIGHTCOVE_URL_TEMPLATE = 'https://players.brightcove.net/1242911124001/OrCyvJ2gyL_default/index.html?videoId=%s'
30 BRIGHTCOVE_URL_TEMPLATE
= 'http://players.brightcove.net/1242911124001/H1xnMOqP_default/index.html?videoId=%s'
32 def _real_extract(self
, url
):
33 video_id
= self
._match
_id
(url
)
34 return self
.url_result(
35 self
.BRIGHTCOVE_URL_TEMPLATE
% video_id
,
36 'BrightcoveNew', video_id
)