]>
Commit | Line | Data |
---|---|---|
00dd0cd5 | 1 | from .common import InfoExtractor |
2 | ||
3 | ||
4 | class BibelTVIE(InfoExtractor): | |
5 | _VALID_URL = r'https?://(?:www\.)?bibeltv\.de/mediathek/videos/(?:crn/)?(?P<id>\d+)' | |
6 | _TESTS = [{ | |
7 | 'url': 'https://www.bibeltv.de/mediathek/videos/329703-sprachkurs-in-malaiisch', | |
8 | 'md5': '252f908192d611de038b8504b08bf97f', | |
9 | 'info_dict': { | |
10 | 'id': 'ref:329703', | |
11 | 'ext': 'mp4', | |
12 | 'title': 'Sprachkurs in Malaiisch', | |
13 | 'description': 'md5:3e9f197d29ee164714e67351cf737dfe', | |
14 | 'timestamp': 1608316701, | |
15 | 'uploader_id': '5840105145001', | |
16 | 'upload_date': '20201218', | |
17 | } | |
18 | }, { | |
19 | 'url': 'https://www.bibeltv.de/mediathek/videos/crn/326374', | |
20 | 'only_matching': True, | |
21 | }] | |
22 | BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/5840105145001/default_default/index.html?videoId=ref:%s' | |
23 | ||
24 | def _real_extract(self, url): | |
25 | crn_id = self._match_id(url) | |
26 | return self.url_result( | |
27 | self.BRIGHTCOVE_URL_TEMPLATE % crn_id, 'BrightcoveNew') |