[Vimeo] Update variable name in hydration JSON pattern
authordirkf <fieldhouse@gmx.net>
Thu, 27 Oct 2022 14:33:00 +0000 (14:33 +0000)
committerGitHub <noreply@github.com>
Thu, 27 Oct 2022 14:33:00 +0000 (14:33 +0000)
Fixes #31311

youtube_dl/extractor/vimeo.py

index a66912502e8804b27f1477dad8d6d3c432b41870..853b3840258f6f63281656b8ad62644d70d7de0b 100644 (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)