logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 502cefa41f1d24057b6158748b2072dc911af682
parent 0faa45d6c08f518b73d20e341944ea7292f9f2b2
Author: dirkf <fieldhouse@gmx.net>
Date:   Thu, 27 Oct 2022 14:33:00 +0000

[Vimeo] Update variable name in hydration JSON pattern

Fixes #31311

Diffstat:

Myoutube_dl/extractor/vimeo.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py @@ -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)