1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-05-19 11:39:28 +00:00

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
This commit is contained in:
Daniel De Jager 2024-01-13 12:01:27 -08:00
parent be008e657d
commit 54e4c51485

View file

@ -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)