Update script extraction regex to handle new page format.

Should be more robust now, as it looks for the </script> tag, not just the brackets and a semicolon/newline
pull/32691/head^2
Daniel De Jager 4 months ago
parent be008e657d
commit 54e4c51485

@ -674,7 +674,7 @@ class VimeoIE(VimeoBaseInfoExtractor):
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)
if config.get('view') == 4:
config = self._verify_player_video_password(
redirect_url, video_id, headers)

Loading…
Cancel
Save