From 6067451e432fb65d487a8a67bb5cff52efb9ccf4 Mon Sep 17 00:00:00 2001 From: df Date: Mon, 20 Feb 2023 01:41:46 +0000 Subject: [PATCH] [Vimeo] Fix e19ec52 for tween-age Pythons * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py index 7f2731d83..8e1a805f6 100644 --- a/youtube_dl/extractor/vimeo.py +++ b/youtube_dl/extractor/vimeo.py @@ -286,7 +286,7 @@ class VimeoIE(VimeoBaseInfoExtractor): /(?!videos|likes)[^/?#]+/?| (?(q)|/(?P[\da-f]{10}))? ) - (?:(?(q)[&]|(?(u)|/?)[?]).*?)?(?:[#].*)?$ + (?:(?(q)[&]|(?(u)|/?)[?]).+?)?(?:[#].*)?$ ''' IE_NAME = 'vimeo' _TESTS = [