Browse Source

vimeo: Also accept URLs prefixed by www.

I hope that this doesn't break anything. `:)`
Rogério Brito 14 years ago
parent
commit
8cc98b2358
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube-dl

+ 1 - 1
youtube-dl

@@ -1723,7 +1723,7 @@ class VimeoIE(InfoExtractor):
 	"""Information extractor for vimeo.com."""
 	"""Information extractor for vimeo.com."""
 
 
 	# _VALID_URL matches Vimeo URLs
 	# _VALID_URL matches Vimeo URLs
-	_VALID_URL = r'(?:http://)?vimeo\.com/([0-9]+)'
+	_VALID_URL = r'(?:http://)?(?:www.)?vimeo\.com/([0-9]+)'
 
 
 	def __init__(self, downloader=None):
 	def __init__(self, downloader=None):
 		InfoExtractor.__init__(self, downloader)
 		InfoExtractor.__init__(self, downloader)