[southpark:espanol] Add extractor (Closes #5525)
authorSergey M․ <dstftw@gmail.com>
Sat, 25 Apr 2015 14:23:42 +0000 (20:23 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 25 Apr 2015 14:23:42 +0000 (20:23 +0600)
youtube_dl/extractor/__init__.py
youtube_dl/extractor/southpark.py

index a64afa1da6d13263e8f72c21ba9c1043cc0341d8..ab80fd5e0e550b4efabd0285270d17d78c1e048d 100644 (file)
@@ -478,6 +478,7 @@ from .soundgasm import (
 )
 from .southpark import (
     SouthParkIE,
+    SouthParkEsIE,
     SouthparkDeIE,
 )
 from .space import SpaceIE
index c20397b3d1bbffb69188ac872facd36cce5b11f7..5c653c8bc08216fe0f3140390ea1a9d74edfe08a 100644 (file)
@@ -20,6 +20,17 @@ class SouthParkIE(MTVServicesInfoExtractor):
     }]
 
 
+class SouthParkEsIE(SouthParkIE):
+    IE_NAME = 'southpark.cc.com:espanol'
+    _VALID_URL = r'https?://(?:www\.)?(?P<url>southpark\.cc\.com/episodios-en-espanol/(?P<id>.+?)(\?|#|$))'
+    _LANG = 'es'
+
+    _TESTS = [{
+        'url': 'http://southpark.cc.com/episodios-en-espanol/s01e01-cartman-consigue-una-sonda-anal#source=351c1323-0b96-402d-a8b9-40d01b2e9bde&position=1&sort=!airdate',
+        'playlist_count': 4,
+    }]
+
+
 class SouthparkDeIE(SouthParkIE):
     IE_NAME = 'southpark.de'
     _VALID_URL = r'https?://(www\.)?(?P<url>southpark\.de/(clips|alle-episoden)/(?P<id>.+?)(\?|#|$))'