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.

36 lines
1.3 KiB

  1. from __future__ import unicode_literals
  2. from .mtv import MTVServicesInfoExtractor
  3. class SouthParkStudiosIE(MTVServicesInfoExtractor):
  4. IE_NAME = 'southparkstudios.com'
  5. _VALID_URL = r'https?://(www\.)?(?P<url>southparkstudios\.com/(clips|full-episodes)/(?P<id>.+?)(\?|#|$))'
  6. _FEED_URL = 'http://www.southparkstudios.com/feeds/video-player/mrss'
  7. _TESTS = [{
  8. 'url': 'http://www.southparkstudios.com/clips/104437/bat-daded#tab=featured',
  9. 'info_dict': {
  10. 'id': 'a7bff6c2-ed00-11e0-aca6-0026b9414f30',
  11. 'ext': 'mp4',
  12. 'title': 'Bat Daded',
  13. 'description': 'Randy disqualifies South Park by getting into a fight with Bat Dad.',
  14. },
  15. }]
  16. class SouthparkDeIE(SouthParkStudiosIE):
  17. IE_NAME = 'southpark.de'
  18. _VALID_URL = r'https?://(www\.)?(?P<url>southpark\.de/(clips|alle-episoden)/(?P<id>.+?)(\?|#|$))'
  19. _FEED_URL = 'http://www.southpark.de/feeds/video-player/mrss/'
  20. _TESTS = [{
  21. 'url': 'http://www.southpark.de/clips/uygssh/the-government-wont-respect-my-privacy#tab=featured',
  22. 'info_dict': {
  23. 'id': '85487c96-b3b9-4e39-9127-ad88583d9bf2',
  24. 'ext': 'mp4',
  25. 'title': 'The Government Won\'t Respect My Privacy',
  26. 'description': 'Cartman explains the benefits of "Shitter" to Stan, Kyle and Craig.',
  27. },
  28. }]