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.

64 lines
2.5 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|episodes)/(?P<id>[^/?#.]+)'
  7. _FEED_URL = 'http://www.tvland.com/feeds/mrss/'
  8. _TESTS = [{
  9. 'url': 'http://www.tvland.com/episodes/hqhps2/everybody-loves-raymond-the-invasion-ep-048',
  10. 'playlist': [
  11. {
  12. 'md5': '227e9723b9669c05bf51098b10287aa7',
  13. 'info_dict': {
  14. 'id': 'bcbd3a83-3aca-4dca-809b-f78a87dcccdd',
  15. 'ext': 'mp4',
  16. 'title': 'Everybody Loves Raymond|Everybody Loves Raymond 048 HD, Part 1 of 5',
  17. }
  18. },
  19. {
  20. 'md5': '9fa2b764ec0e8194fb3ebb01a83df88b',
  21. 'info_dict': {
  22. 'id': 'f4279548-6e13-40dd-92e8-860d27289197',
  23. 'ext': 'mp4',
  24. 'title': 'Everybody Loves Raymond|Everybody Loves Raymond 048 HD, Part 2 of 5',
  25. }
  26. },
  27. {
  28. 'md5': 'fde4c3bccd7cc7e3576b338734153cec',
  29. 'info_dict': {
  30. 'id': '664e4a38-53ef-4115-9bc9-d0f789ec6334',
  31. 'ext': 'mp4',
  32. 'title': 'Everybody Loves Raymond|Everybody Loves Raymond 048 HD, Part 3 of 5',
  33. }
  34. },
  35. {
  36. 'md5': '247f6780cda6891f2e49b8ae2b10e017',
  37. 'info_dict': {
  38. 'id': '9146ecf5-b15a-4d78-879c-6679b77f4960',
  39. 'ext': 'mp4',
  40. 'title': 'Everybody Loves Raymond|Everybody Loves Raymond 048 HD, Part 4 of 5',
  41. }
  42. },
  43. {
  44. 'md5': 'fd269f33256e47bad5eb6c40de089ff6',
  45. 'info_dict': {
  46. 'id': '04334a2e-9a47-4214-a8c2-ae5792e2fab7',
  47. 'ext': 'mp4',
  48. 'title': 'Everybody Loves Raymond|Everybody Loves Raymond 048 HD, Part 5 of 5',
  49. }
  50. }
  51. ],
  52. }, {
  53. 'url': 'http://www.tvland.com/video-clips/zea2ev/younger-younger--hilary-duff---little-lies',
  54. 'md5': 'e2c6389401cf485df26c79c247b08713',
  55. 'info_dict': {
  56. 'id': 'b8697515-4bbe-4e01-83d5-fa705ce5fa88',
  57. 'ext': 'mp4',
  58. 'title': 'Younger|Younger: Hilary Duff - Little Lies',
  59. 'description': 'md5:7d192f56ca8d958645c83f0de8ef0269'
  60. },
  61. }]