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.

47 lines
1.7 KiB

10 years ago
  1. from __future__ import unicode_literals
  2. from .mtv import MTVServicesInfoExtractor
  3. class SouthParkIE(MTVServicesInfoExtractor):
  4. IE_NAME = 'southpark.cc.com'
  5. _VALID_URL = r'https?://(?:www\.)?(?P<url>southpark\.cc\.com/(?:clips|full-episodes)/(?P<id>.+?)(\?|#|$))'
  6. _FEED_URL = 'http://www.southparkstudios.com/feeds/video-player/mrss'
  7. _TESTS = [{
  8. 'url': 'http://southpark.cc.com/clips/104437/bat-daded#tab=featured',
  9. 'info_dict': {
  10. 'id': 'a7bff6c2-ed00-11e0-aca6-0026b9414f30',
  11. 'ext': 'mp4',
  12. 'title': 'South Park|Bat Daded',
  13. 'description': 'Randy disqualifies South Park by getting into a fight with Bat Dad.',
  14. },
  15. }]
  16. class SouthParkEsIE(SouthParkIE):
  17. IE_NAME = 'southpark.cc.com:espanol'
  18. _VALID_URL = r'https?://(?:www\.)?(?P<url>southpark\.cc\.com/episodios-en-espanol/(?P<id>.+?)(\?|#|$))'
  19. _LANG = 'es'
  20. _TESTS = [{
  21. 'url': 'http://southpark.cc.com/episodios-en-espanol/s01e01-cartman-consigue-una-sonda-anal#source=351c1323-0b96-402d-a8b9-40d01b2e9bde&position=1&sort=!airdate',
  22. 'playlist_count': 4,
  23. }]
  24. class SouthparkDeIE(SouthParkIE):
  25. IE_NAME = 'southpark.de'
  26. _VALID_URL = r'https?://(?:www\.)?(?P<url>southpark\.de/(?:clips|alle-episoden)/(?P<id>.+?)(\?|#|$))'
  27. _FEED_URL = 'http://www.southpark.de/feeds/video-player/mrss/'
  28. _TESTS = [{
  29. 'url': 'http://www.southpark.de/clips/uygssh/the-government-wont-respect-my-privacy#tab=featured',
  30. 'info_dict': {
  31. 'id': '85487c96-b3b9-4e39-9127-ad88583d9bf2',
  32. 'ext': 'mp4',
  33. 'title': 'The Government Won\'t Respect My Privacy',
  34. 'description': 'Cartman explains the benefits of "Shitter" to Stan, Kyle and Craig.',
  35. },
  36. }]