1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-12 23:27:18 +08:00

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

This commit is contained in:
Sergey M․ 2018-10-01 21:13:43 +07:00 committed by Ni Ndogo
parent f96c37c186
commit e855c8c28d

View File

@ -551,6 +551,7 @@ class VimeoIE(VimeoBaseInfoExtractor):
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)