1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-05-17 02:29:32 +00:00

[Vimeo] Update variable name in hydration JSON pattern

Fixes #31311
This commit is contained in:
dirkf 2022-10-27 14:33:00 +00:00 committed by GitHub
parent 0faa45d6c0
commit 502cefa41f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -663,7 +663,7 @@ class VimeoIE(VimeoBaseInfoExtractor):
if '//player.vimeo.com/video/' in url:
config = self._parse_json(self._search_regex(
r'\bconfig\s*=\s*({.+?})\s*;', webpage, 'info section'), video_id)
r'\b(?:playerC|c)onfig\s*=\s*({.+?})\s*;', webpage, 'info section'), video_id)
if config.get('view') == 4:
config = self._verify_player_video_password(
redirect_url, video_id, headers)