dreisat.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. from .zdf import ZDFIE
  2. class DreiSatIE(ZDFIE): # XXX: Do not subclass from concrete IE
  3. IE_NAME = '3sat'
  4. _VALID_URL = r'https?://(?:www\.)?3sat\.de/(?:[^/]+/)*(?P<id>[^/?#&]+)\.html'
  5. _TESTS = [{
  6. # Same as https://www.zdf.de/dokumentation/ab-18/10-wochen-sommer-102.html
  7. 'url': 'https://www.3sat.de/film/ab-18/10-wochen-sommer-108.html',
  8. 'md5': '0aff3e7bc72c8813f5e0fae333316a1d',
  9. 'info_dict': {
  10. 'id': '141007_ab18_10wochensommer_film',
  11. 'ext': 'mp4',
  12. 'title': 'Ab 18! - 10 Wochen Sommer',
  13. 'description': 'md5:8253f41dc99ce2c3ff892dac2d65fe26',
  14. 'duration': 2660,
  15. 'timestamp': 1608604200,
  16. 'upload_date': '20201222',
  17. },
  18. }, {
  19. 'url': 'https://www.3sat.de/gesellschaft/schweizweit/waidmannsheil-100.html',
  20. 'info_dict': {
  21. 'id': '140913_sendung_schweizweit',
  22. 'ext': 'mp4',
  23. 'title': 'Waidmannsheil',
  24. 'description': 'md5:cce00ca1d70e21425e72c86a98a56817',
  25. 'timestamp': 1410623100,
  26. 'upload_date': '20140913',
  27. },
  28. 'params': {
  29. 'skip_download': True,
  30. },
  31. }, {
  32. # Same as https://www.zdf.de/filme/filme-sonstige/der-hauptmann-112.html
  33. 'url': 'https://www.3sat.de/film/spielfilm/der-hauptmann-100.html',
  34. 'only_matching': True,
  35. }, {
  36. # Same as https://www.zdf.de/wissen/nano/nano-21-mai-2019-102.html, equal media ids
  37. 'url': 'https://www.3sat.de/wissen/nano/nano-21-mai-2019-102.html',
  38. 'only_matching': True,
  39. }]