]> jfr.im git - yt-dlp.git/commitdiff
[extractor/vimeo:user] Fix _VALID_URL
authorpukkandan <redacted>
Fri, 26 Aug 2022 00:58:37 +0000 (06:28 +0530)
committerpukkandan <redacted>
Fri, 26 Aug 2022 00:59:03 +0000 (06:29 +0530)
Closes #4758

yt_dlp/extractor/vimeo.py

index 9e17149bede5d132ae5e80df9a91720a7f9056a5..25d2f200f2c11beedc58b1be6bc99fa6c7a346b2 100644 (file)
@@ -1131,7 +1131,7 @@ def _real_extract(self, url):
 
 class VimeoUserIE(VimeoChannelIE):
     IE_NAME = 'vimeo:user'
-    _VALID_URL = r'https://vimeo\.com/(?!(?:[0-9]+|watchlater)(?:$|[?#/]))(?P<id>[^/]+)(?:/videos|[#?]|$)'
+    _VALID_URL = r'https://vimeo\.com/(?!(?:[0-9]+|watchlater)(?:$|[?#/]))(?P<id>[^/]+)(?:/videos)?/?(?:$|[?#])'
     _TITLE_RE = r'<a[^>]+?class="user">([^<>]+?)</a>'
     _TESTS = [{
         'url': 'https://vimeo.com/nkistudio/videos',
@@ -1140,6 +1140,9 @@ class VimeoUserIE(VimeoChannelIE):
             'id': 'nkistudio',
         },
         'playlist_mincount': 66,
+    }, {
+        'url': 'https://vimeo.com/nkistudio/',
+        'only_matching': True,
     }]
     _BASE_URL_TEMPL = 'https://vimeo.com/%s'