aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-01-16 11:21:33 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-01-16 11:21:33 +0100
commitc11529618a4863490581b7e40a24969cc21bba38 (patch)
tree20b5119e26bdbf3521e003573b0b077264fc564f
parenta9f53ce7ea10d0f69e09bd38d4ab60d079229d93 (diff)
[redtube] Make ‘http:’ not optional (closes #2160)
If the url doesn’t specify the protocol we can’t directly use it to download the webpage, we would need to build a new url. Instead, we let the generic extractor add the protocol.
-rw-r--r--youtube_dl/extractor/redtube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/redtube.py b/youtube_dl/extractor/redtube.py
index c2254ae8a..5c4cd2068 100644
--- a/youtube_dl/extractor/redtube.py
+++ b/youtube_dl/extractor/redtube.py
@@ -4,7 +4,7 @@ from .common import InfoExtractor
class RedTubeIE(InfoExtractor):
- _VALID_URL = r'(?:http://)?(?:www\.)?redtube\.com/(?P<id>[0-9]+)'
+ _VALID_URL = r'http://(?:www\.)?redtube\.com/(?P<id>[0-9]+)'
_TEST = {
u'url': u'http://www.redtube.com/66418',
u'file': u'66418.mp4',