]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/uktvplay.py
debian/patches/remove-autoupdate-mechanism.patch: Refresh.
[youtubedl] / youtube_dl / extractor / uktvplay.py
1 # coding: utf-8
2 from __future__ import unicode_literals
3
4 from .common import InfoExtractor
5
6
7 class UKTVPlayIE(InfoExtractor):
8 _VALID_URL = r'https?://uktvplay\.uktv\.co\.uk/.+?\?.*?\bvideo=(?P<id>\d+)'
9 _TEST = {
10 'url': 'https://uktvplay.uktv.co.uk/shows/world-at-war/c/200/watch-online/?video=2117008346001',
11 'md5': '',
12 'info_dict': {
13 'id': '2117008346001',
14 'ext': 'mp4',
15 'title': 'Pincers',
16 'description': 'Pincers',
17 'uploader_id': '1242911124001',
18 'upload_date': '20130124',
19 'timestamp': 1359049267,
20 },
21 'params': {
22 # m3u8 download
23 'skip_download': True,
24 },
25 'expected_warnings': ['Failed to download MPD manifest']
26 }
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)