diff options
author | dirkf <fieldhouse@gmx.net> | 2023-02-04 00:21:35 +0000 |
---|---|---|
committer | dirkf <fieldhouse@gmx.net> | 2023-02-12 22:16:00 +0000 |
commit | f2f90887ca7a452dfafa7ca221fe981a4ec56707 (patch) | |
tree | b74fcfa4f62b9de87b2719449d4b20ea1bb068c5 | |
parent | cd987e6fca336cf6570b4938442c23cd0bdf7256 (diff) |
[Vimeo] Fix `Unable to extract info section` redux
* as reported in yt-dlp/yt-dlp#6149
* also allow newline in target JSON object
-rw-r--r-- | youtube_dl/extractor/vimeo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py index 853b38402..14f8dd034 100644 --- 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'\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) |