Skip to content

Commit 4bcc924

Browse files
gzz2000GitHub Actions
authored and
GitHub Actions
committed
[Vimeo] Improve config extraction (#32742)
* update for more robust json parsing
1 parent e1f5685 commit 4bcc924

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

youtube_dl/extractor/vimeo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,8 @@ def _real_extract(self, url):
673673
raise
674674

675675
if '//player.vimeo.com/video/' in url:
676-
config = self._parse_json(self._search_regex(
677-
r'(?s)\b(?:playerC|c)onfig\s*=\s*({.+?})\s*[;\n]', webpage, 'info section'), video_id)
676+
config = self._search_json(
677+
r'\b(?:playerC|c)onfig\s*=', webpage, 'info section', video_id)
678678
if config.get('view') == 4:
679679
config = self._verify_player_video_password(
680680
redirect_url, video_id, headers)

0 commit comments

Comments
 (0)