]> git.bitcoin.ninja Git - youtube-dl/commitdiff
re-fixed XNXX regex problem
authorJeff Crouse <jefftimesten@gmail.com>
Sat, 5 Jan 2013 21:05:23 +0000 (16:05 -0500)
committerJeff Crouse <jefftimesten@gmail.com>
Sat, 5 Jan 2013 21:05:23 +0000 (16:05 -0500)
youtube_dl/InfoExtractors.py

index 72ad25ad316967a3e85e554fd650e6a76cd3a092..905e212b099319f96415a8af56c63fc27d28ecd4 100755 (executable)
@@ -3294,7 +3294,7 @@ class YoukuIE(InfoExtractor):
 class XNXXIE(InfoExtractor):
     """Information extractor for xnxx.com"""
 
-    _VALID_URL = r'^http://video\.xnxx\.com/video([0-9]+)/(.*)'
+    _VALID_URL = r'^(?:https?://)?video\.xnxx\.com/video([0-9]+)/(.*)'
     IE_NAME = u'xnxx'
     VIDEO_URL_RE = r'flv_url=(.*?)&amp;'
     VIDEO_TITLE_RE = r'<title>(.*?)\s+-\s+XNXX.COM'