]>
Commit | Line | Data |
---|---|---|
f59d1146 RA |
1 | from .common import InfoExtractor |
2 | ||
3 | ||
4 | class UKTVPlayIE(InfoExtractor): | |
0a6b4b82 | 5 | _VALID_URL = r'https?://uktvplay\.(?:uktv\.)?co\.uk/(?:.+?\?.*?\bvideo=|([^/]+/)*watch-online/)(?P<id>\d+)' |
29f7c58a | 6 | _TESTS = [{ |
f59d1146 | 7 | 'url': 'https://uktvplay.uktv.co.uk/shows/world-at-war/c/200/watch-online/?video=2117008346001', |
f59d1146 RA |
8 | 'info_dict': { |
9 | 'id': '2117008346001', | |
10 | 'ext': 'mp4', | |
11 | 'title': 'Pincers', | |
12 | 'description': 'Pincers', | |
13 | 'uploader_id': '1242911124001', | |
14 | 'upload_date': '20130124', | |
15 | 'timestamp': 1359049267, | |
16 | }, | |
17 | 'params': { | |
18 | # m3u8 download | |
19 | 'skip_download': True, | |
20 | }, | |
21 | 'expected_warnings': ['Failed to download MPD manifest'] | |
29f7c58a | 22 | }, { |
23 | 'url': 'https://uktvplay.uktv.co.uk/shows/africa/watch-online/5983349675001', | |
24 | 'only_matching': True, | |
25 | }] | |
26 | # BRIGHTCOVE_URL_TEMPLATE = 'https://players.brightcove.net/1242911124001/OrCyvJ2gyL_default/index.html?videoId=%s' | |
f59d1146 RA |
27 | BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/1242911124001/H1xnMOqP_default/index.html?videoId=%s' |
28 | ||
29 | def _real_extract(self, url): | |
30 | video_id = self._match_id(url) | |
31 | return self.url_result( | |
32 | self.BRIGHTCOVE_URL_TEMPLATE % video_id, | |
33 | 'BrightcoveNew', video_id) |