1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-12 20:41:21 +00:00

[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)[^/?#]+/?|
(?(q)|/(?P<unlisted_hash>[\da-f]{10}))?
)
(?:(?(q)[&]|(?(u)|/?)[?]).*?)?(?:[#].*)?$
(?:(?(q)[&]|(?(u)|/?)[?]).+?)?(?:[#].*)?$
'''
IE_NAME = 'vimeo'
_TESTS = [