about summary refs log tree commit diff
path: root/youtube_dl/extractor/comedycentral.py
diff options
context:
space:
mode:
authordst <dstftw@gmail.com>2014-01-30 04:33:00 +0700
committerdst <dstftw@gmail.com>2014-01-30 04:33:00 +0700
commit57b62883586487df5adc8a45d91969eea14309b7 (patch)
treebc3986eed0a95bccb0e68deb52edb9ef7064a5ef /youtube_dl/extractor/comedycentral.py
parentc3f51436bf3b36572b403d3240c947e6961bd25f (diff)
downloadyoutube-dl-57b62883586487df5adc8a45d91969eea14309b7.tar.gz
youtube-dl-57b62883586487df5adc8a45d91969eea14309b7.tar.xz
youtube-dl-57b62883586487df5adc8a45d91969eea14309b7.zip
[comedycentral] Improve regexes
Diffstat (limited to 'youtube_dl/extractor/comedycentral.py')
-rw-r--r--youtube_dl/extractor/comedycentral.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/comedycentral.py b/youtube_dl/extractor/comedycentral.py
index 3333d433b..ed3986f31 100644
--- a/youtube_dl/extractor/comedycentral.py
+++ b/youtube_dl/extractor/comedycentral.py
@@ -14,7 +14,7 @@ from ..utils import (
 
 
 class ComedyCentralIE(MTVServicesInfoExtractor):
-    _VALID_URL = r'''(?x)https?://(?:www.)?comedycentral.com/
+    _VALID_URL = r'''(?x)https?://(?:www\.)?comedycentral\.com/
         (video-clips|episodes|cc-studios|video-collections)
         /(?P<title>.*)'''
     _FEED_URL = 'http://comedycentral.com/feeds/mrss/'
@@ -86,7 +86,7 @@ class ComedyCentralShowsIE(InfoExtractor):
 
     @staticmethod
     def _transform_rtmp_url(rtmp_video_url):
-        m = re.match(r'^rtmpe?://.*?/(?P<finalid>gsp.comedystor/.*)$', rtmp_video_url)
+        m = re.match(r'^rtmpe?://.*?/(?P<finalid>gsp\.comedystor/.*)$', rtmp_video_url)
         if not m:
             raise ExtractorError('Cannot transform RTMP url')
         base = 'http://mtvnmobile.vo.llnwd.net/kip0/_pxn=1+_pxI0=Ripod-h264+_pxL0=undefined+_pxM0=+_pxK=18639+_pxE=mp4/44620/mtvnorigin/'