Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vimeo] fix config parser regex #32742

Merged
merged 2 commits into from Mar 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion youtube_dl/extractor/vimeo.py
Expand Up @@ -674,7 +674,7 @@ def _real_extract(self, url):

if '//player.vimeo.com/video/' in url:
config = self._parse_json(self._search_regex(
r'(?s)\b(?:playerC|c)onfig\s*=\s*({.+?})\s*[;\n]', webpage, 'info section'), video_id)
r'(?s)\b(?:playerC|c)onfig\s*=\s*({.+?})\s*(?:;|\n|\<\/script\>)', webpage, 'info section'), video_id)
gzz2000 marked this conversation as resolved.
Show resolved Hide resolved
if config.get('view') == 4:
config = self._verify_player_video_password(
redirect_url, video_id, headers)
Expand Down