vimeo: Tweak the regexp to allow some extended URLs from vimeo.
authorRogério Brito <rbrito@ime.usp.br>
Thu, 21 Apr 2011 00:20:55 +0000 (21:20 -0300)
committerRogério Brito <rbrito@ime.usp.br>
Thu, 21 Apr 2011 00:21:01 +0000 (21:21 -0300)
This, in particular, lets me grab the videos from the beginners channel with
URLs like:

    http://vimeo.com/groups/fivebyfive/videos/22648611

Note that the regexp *will* break for other URLs that we don't know about
and that's on purpose: we don't want to accidentally grab videos that would
be passed on to other information extractors.

youtube-dl

index 17fb82da702473d2233e4021c80f289f2b5d4102..f3d7a3f61f5f8addf1f3c04214c6245b35147490 100755 (executable)
@@ -1724,7 +1724,7 @@ class VimeoIE(InfoExtractor):
        """Information extractor for vimeo.com."""
 
        # _VALID_URL matches Vimeo URLs
-       _VALID_URL = r'(?:https?://)?(?:(?:www|player).)?vimeo\.com/(?:video/)?([0-9]+)'
+       _VALID_URL = r'(?:https?://)?(?:(?:www|player).)?vimeo\.com/(?:groups/[^/]+/)?(?:videos?/)?([0-9]+)'
 
        def __init__(self, downloader=None):
                InfoExtractor.__init__(self, downloader)