bibeltv.py 1.0 KB

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