]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[southpark] Improve some _VALID_URL's
authorSergey M․ <dstftw@gmail.com>
Sat, 25 Apr 2015 14:24:15 +0000 (20:24 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 25 Apr 2015 14:24:15 +0000 (20:24 +0600)
youtube_dl/extractor/southpark.py

index 5c653c8bc08216fe0f3140390ea1a9d74edfe08a..77758bbedfc44cbb2c433f52136ddc834ab1f046 100644 (file)
@@ -5,7 +5,7 @@ from .mtv import MTVServicesInfoExtractor
 
 class SouthParkIE(MTVServicesInfoExtractor):
     IE_NAME = 'southpark.cc.com'
-    _VALID_URL = r'https?://(www\.)?(?P<url>southpark\.cc\.com/(clips|full-episodes)/(?P<id>.+?)(\?|#|$))'
+    _VALID_URL = r'https?://(?:www\.)?(?P<url>southpark\.cc\.com/(?:clips|full-episodes)/(?P<id>.+?)(\?|#|$))'
 
     _FEED_URL = 'http://www.southparkstudios.com/feeds/video-player/mrss'
 
@@ -33,7 +33,7 @@ class SouthParkEsIE(SouthParkIE):
 
 class SouthparkDeIE(SouthParkIE):
     IE_NAME = 'southpark.de'
-    _VALID_URL = r'https?://(www\.)?(?P<url>southpark\.de/(clips|alle-episoden)/(?P<id>.+?)(\?|#|$))'
+    _VALID_URL = r'https?://(?:www\.)?(?P<url>southpark\.de/(?:clips|alle-episoden)/(?P<id>.+?)(\?|#|$))'
     _FEED_URL = 'http://www.southpark.de/feeds/video-player/mrss/'
 
     _TESTS = [{