0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

[vimeo] Add another config regex (closes #17690)

This commit is contained in:
Sergey M․ 2018-10-01 21:13:43 +07:00
parent 245cbb33bc
commit 85fa80d5f9
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -551,6 +551,7 @@ def _real_extract(self, url):
else:
config_re = [r' = {config:({.+?}),assets:', r'(?:[abc])=({.+?});']
config_re.append(r'\bvar\s+r\s*=\s*({.+?})\s*;')
config_re.append(r'\bconfig\s*=\s*({.+?})\s*;')
config = self._search_regex(config_re, webpage, 'info section',
flags=re.DOTALL)
config = json.loads(config)