]> jfr.im git - yt-dlp.git/blame - yt_dlp/extractor/bibeltv.py
[npr] Make SMIL extraction non-fatal (#2099)
[yt-dlp.git] / yt_dlp / extractor / bibeltv.py
CommitLineData
00dd0cd5 1# coding: utf-8
2from __future__ import unicode_literals
3
4from .common import InfoExtractor
5
6
7class BibelTVIE(InfoExtractor):
8 _VALID_URL = r'https?://(?:www\.)?bibeltv\.de/mediathek/videos/(?:crn/)?(?P<id>\d+)'
9 _TESTS = [{
10 'url': 'https://www.bibeltv.de/mediathek/videos/329703-sprachkurs-in-malaiisch',
11 'md5': '252f908192d611de038b8504b08bf97f',
12 'info_dict': {
13 'id': 'ref:329703',
14 'ext': 'mp4',
15 'title': 'Sprachkurs in Malaiisch',
16 'description': 'md5:3e9f197d29ee164714e67351cf737dfe',
17 'timestamp': 1608316701,
18 'uploader_id': '5840105145001',
19 'upload_date': '20201218',
20 }
21 }, {
22 'url': 'https://www.bibeltv.de/mediathek/videos/crn/326374',
23 'only_matching': True,
24 }]
25 BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/5840105145001/default_default/index.html?videoId=ref:%s'
26
27 def _real_extract(self, url):
28 crn_id = self._match_id(url)
29 return self.url_result(
30 self.BRIGHTCOVE_URL_TEMPLATE % crn_id, 'BrightcoveNew')