[Vimeo] Fix e19ec52 for tween-age Pythons
authordf <fieldhouse@gmx.net>
Mon, 20 Feb 2023 01:41:46 +0000 (01:41 +0000)
committerdf <fieldhouse@gmx.net>
Mon, 20 Feb 2023 01:41:46 +0000 (01:41 +0000)
* a check in older Pythons in the 2.7 and earlier, 3.3, 3.4 series caused "sre_constants.error: nothing to repeat"
* satisfy the check by avoiding nested qualifiers that can match empty string

Resolves #31597

youtube_dl/extractor/vimeo.py

index 7f2731d835007b0c1165a25471ac60cc80f79a65..8e1a805f64060cc7b503fb0c10a524a0904ec506 100644 (file)
@@ -286,7 +286,7 @@ class VimeoIE(VimeoBaseInfoExtractor):
                              /(?!videos|likes)[^/?#]+/?|
                              (?(q)|/(?P<unlisted_hash>[\da-f]{10}))?
                          )
-                         (?:(?(q)[&]|(?(u)|/?)[?]).*?)?(?:[#].*)?$
+                         (?:(?(q)[&]|(?(u)|/?)[?]).+?)?(?:[#].*)?$
                  '''
     IE_NAME = 'vimeo'
     _TESTS = [