[vimeo] Fix playlist URL matching
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 7 Jan 2014 06:13:42 +0000 (07:13 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 7 Jan 2014 06:13:47 +0000 (07:13 +0100)
test/test_all_urls.py
youtube_dl/extractor/vimeo.py

index bd77b7c30149d556caa1237b4be4c06a56adc613..75547f42a1fdd4bdccbe7f04398a4e071bd40064 100644 (file)
@@ -113,6 +113,8 @@ class TestAllURLsMatching(unittest.TestCase):
     def test_vimeo_matching(self):
         self.assertMatch('http://vimeo.com/channels/tributes', ['vimeo:channel'])
         self.assertMatch('http://vimeo.com/user7108434', ['vimeo:user'])
+        self.assertMatch('http://vimeo.com/user7108434/videos', ['vimeo:user'])
+        self.assertMatch('https://vimeo.com/user21297594/review/75524534/3c257a1b5d', ['vimeo:review'])
 
     # https://github.com/rg3/youtube-dl/issues/1930
     def test_soundcloud_not_matching_sets(self):
index ad86d033acc3279f0a821cdb4fd1616ed60c5305..81c495d1e713d5190020d3966f36ed2c16e055d5 100644 (file)
@@ -318,7 +318,7 @@ class VimeoChannelIE(InfoExtractor):
 
 class VimeoUserIE(VimeoChannelIE):
     IE_NAME = 'vimeo:user'
-    _VALID_URL = r'(?:https?://)?vimeo.\com/(?P<name>[^/]+)(?:[#?]|$)'
+    _VALID_URL = r'(?:https?://)?vimeo.\com/(?P<name>[^/]+)(?:/videos|[#?]|$)'
     _TITLE_RE = r'<a[^>]+?class="user">([^<>]+?)</a>'
 
     @classmethod