[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
This commit is contained in:
df 2023-02-20 01:41:46 +00:00
parent 57802e632f
commit 6067451e43

View File

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