logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git

bibeltv.py (1102B)


  1. # coding: utf-8
  2. from __future__ import unicode_literals
  3. from .common import InfoExtractor
  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. def _real_extract(self, url):
  24. crn_id = self._match_id(url)
  25. return self.url_result(
  26. self.BRIGHTCOVE_URL_TEMPLATE % crn_id, 'BrightcoveNew')