tvland.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. from .mtv import MTVServicesInfoExtractor
  2. # TODO: Remove - Reason not used anymore - Service moved to youtube
  3. class TVLandIE(MTVServicesInfoExtractor):
  4. IE_NAME = 'tvland.com'
  5. _VALID_URL = r'https?://(?:www\.)?tvland\.com/(?:video-clips|(?:full-)?episodes)/(?P<id>[^/?#.]+)'
  6. _FEED_URL = 'http://www.tvland.com/feeds/mrss/'
  7. _TESTS = [{
  8. # Geo-restricted. Without a proxy metadata are still there. With a
  9. # proxy it redirects to http://m.tvland.com/app/
  10. 'url': 'https://www.tvland.com/episodes/s04pzf/everybody-loves-raymond-the-dog-season-1-ep-19',
  11. 'info_dict': {
  12. 'description': 'md5:84928e7a8ad6649371fbf5da5e1ad75a',
  13. 'title': 'The Dog',
  14. },
  15. 'playlist_mincount': 5,
  16. 'skip': '404 Not found',
  17. }, {
  18. 'url': 'https://www.tvland.com/video-clips/4n87f2/younger-a-first-look-at-younger-season-6',
  19. 'md5': 'e2c6389401cf485df26c79c247b08713',
  20. 'info_dict': {
  21. 'id': '891f7d3c-5b5b-4753-b879-b7ba1a601757',
  22. 'ext': 'mp4',
  23. 'title': 'Younger|April 30, 2019|6|NO-EPISODE#|A First Look at Younger Season 6',
  24. 'description': 'md5:595ea74578d3a888ae878dfd1c7d4ab2',
  25. 'upload_date': '20190430',
  26. 'timestamp': 1556658000,
  27. },
  28. 'params': {
  29. 'skip_download': True,
  30. },
  31. }, {
  32. 'url': 'http://www.tvland.com/full-episodes/iu0hz6/younger-a-kiss-is-just-a-kiss-season-3-ep-301',
  33. 'only_matching': True,
  34. }]