mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-12 20:41:21 +00:00
[Vimeo] Fix Unable to extract info section
redux
* as reported in yt-dlp/yt-dlp#6149 * also allow newline in target JSON object
This commit is contained in:
parent
cd987e6fca
commit
f2f90887ca
1 changed files with 1 additions and 1 deletions
|
@ -663,7 +663,7 @@ class VimeoIE(VimeoBaseInfoExtractor):
|
|||
|
||||
if '//player.vimeo.com/video/' in url:
|
||||
config = self._parse_json(self._search_regex(
|
||||
r'\b(?:playerC|c)onfig\s*=\s*({.+?})\s*;', webpage, 'info section'), video_id)
|
||||
r'(?s)\b(?:playerC|c)onfig\s*=\s*({.+?})\s*[;\n]', webpage, 'info section'), video_id)
|
||||
if config.get('view') == 4:
|
||||
config = self._verify_player_video_password(
|
||||
redirect_url, video_id, headers)
|
||||
|
|
Loading…
Reference in a new issue