aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2021-01-06 20:38:02 +0100
committerRemita Amine <remitamine@gmail.com>2021-01-06 20:38:02 +0100
commita29e340efa60ecb05d85e9c6d87ec709ba26822f (patch)
tree0ad18791a628105113b42ee706b1077f2da4c08e
parentb13f29098fa8c7cf8da1867661713cbedb32e431 (diff)
[bibeltv] Add new extractor(closes #14361)
-rw-r--r--youtube_dl/extractor/bibeltv.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/youtube_dl/extractor/bibeltv.py b/youtube_dl/extractor/bibeltv.py
new file mode 100644
index 000000000..56c2bfee8
--- /dev/null
+++ b/youtube_dl/extractor/bibeltv.py
@@ -0,0 +1,30 @@
+# coding: utf-8
+from __future__ import unicode_literals
+
+from .common import InfoExtractor
+
+
+class BibelTVIE(InfoExtractor):
+ _VALID_URL = r'https?://(?:www\.)?bibeltv\.de/mediathek/videos/(?:crn/)?(?P<id>\d+)'
+ _TESTS = [{
+ 'url': 'https://www.bibeltv.de/mediathek/videos/329703-sprachkurs-in-malaiisch',
+ 'md5': '252f908192d611de038b8504b08bf97f',
+ 'info_dict': {
+ 'id': 'ref:329703',
+ 'ext': 'mp4',
+ 'title': 'Sprachkurs in Malaiisch',
+ 'description': 'md5:3e9f197d29ee164714e67351cf737dfe',
+ 'timestamp': 1608316701,
+ 'uploader_id': '5840105145001',
+ 'upload_date': '20201218',
+ }
+ }, {
+ 'url': 'https://www.bibeltv.de/mediathek/videos/crn/326374',
+ 'only_matching': True,
+ }]
+ BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/5840105145001/default_default/index.html?videoId=ref:%s'
+
+ def _real_extract(self, url):
+ crn_id = self._match_id(url)
+ return self.url_result(
+ self.BRIGHTCOVE_URL_TEMPLATE % crn_id, 'BrightcoveNew')