You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.4 KiB

  1. # coding: utf-8
  2. from __future__ import unicode_literals
  3. from .mtv import MTVServicesInfoExtractor
  4. class TVLandIE(MTVServicesInfoExtractor):
  5. IE_NAME = 'tvland.com'
  6. _VALID_URL = r'https?://(?:www\.)?tvland\.com/(?:video-clips|(?:full-)?episodes)/(?P<id>[^/?#.]+)'
  7. _FEED_URL = 'http://www.tvland.com/feeds/mrss/'
  8. _TESTS = [{
  9. # Geo-restricted. Without a proxy metadata are still there. With a
  10. # proxy it redirects to http://m.tvland.com/app/
  11. 'url': 'http://www.tvland.com/episodes/hqhps2/everybody-loves-raymond-the-invasion-ep-048',
  12. 'info_dict': {
  13. 'description': 'md5:80973e81b916a324e05c14a3fb506d29',
  14. 'title': 'The Invasion',
  15. },
  16. 'playlist': [],
  17. }, {
  18. 'url': 'http://www.tvland.com/video-clips/zea2ev/younger-younger--hilary-duff---little-lies',
  19. 'md5': 'e2c6389401cf485df26c79c247b08713',
  20. 'info_dict': {
  21. 'id': 'b8697515-4bbe-4e01-83d5-fa705ce5fa88',
  22. 'ext': 'mp4',
  23. 'title': 'Younger|December 28, 2015|2|NO-EPISODE#|Younger: Hilary Duff - Little Lies',
  24. 'description': 'md5:7d192f56ca8d958645c83f0de8ef0269',
  25. 'upload_date': '20151228',
  26. 'timestamp': 1451289600,
  27. },
  28. }, {
  29. 'url': 'http://www.tvland.com/full-episodes/iu0hz6/younger-a-kiss-is-just-a-kiss-season-3-ep-301',
  30. 'only_matching': True,
  31. }]