[vimeo] Make the protocol mandatory in the url (fixes #3926)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 11 Oct 2014 20:25:30 +0000 (22:25 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 11 Oct 2014 20:26:26 +0000 (22:26 +0200)
If it's missing, it will be correctly handled by the generic IE.

youtube_dl/extractor/vimeo.py

index d2c36b58a25ef7d98c98192ab9eccc0d710e85d9..e6a86f18ec5018615344e547cd332892c81fc665 100644 (file)
@@ -56,7 +56,7 @@ class VimeoIE(VimeoBaseInfoExtractor, SubtitlesInfoExtractor):
 
     # _VALID_URL matches Vimeo URLs
     _VALID_URL = r'''(?x)
-        (?P<proto>(?:https?:)?//)?
+        https?://
         (?:(?:www|(?P<player>player))\.)?
         vimeo(?P<pro>pro)?\.com/
         (?!channels/[^/?#]+/?(?:$|[?#])|album/)