mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-24 04:56:55 +01:00
[vimeo] Add another config regex (closes #17690)
This commit is contained in:
parent
245cbb33bc
commit
85fa80d5f9
@ -551,6 +551,7 @@ class VimeoIE(VimeoBaseInfoExtractor):
|
|||||||
else:
|
else:
|
||||||
config_re = [r' = {config:({.+?}),assets:', r'(?:[abc])=({.+?});']
|
config_re = [r' = {config:({.+?}),assets:', r'(?:[abc])=({.+?});']
|
||||||
config_re.append(r'\bvar\s+r\s*=\s*({.+?})\s*;')
|
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',
|
config = self._search_regex(config_re, webpage, 'info section',
|
||||||
flags=re.DOTALL)
|
flags=re.DOTALL)
|
||||||
config = json.loads(config)
|
config = json.loads(config)
|
||||||
|
Loading…
Reference in New Issue
Block a user