Browse Source

[Vimeo] Update variable name in hydration JSON pattern

Fixes #31311
pull/31320/head
dirkf 3 months ago committed by GitHub
parent
commit
502cefa41f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      youtube_dl/extractor/vimeo.py

2
youtube_dl/extractor/vimeo.py

@ -663,7 +663,7 @@ class VimeoIE(VimeoBaseInfoExtractor): @@ -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)

Loading…
Cancel
Save