diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-07-19 23:14:20 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-07-19 23:15:27 +0700 |
commit | 6fc09f0155bae1fd0d3edf31111b37012875b6f2 (patch) | |
tree | e244bf0dfc544deeb0d4accbdae2847fe22f2fca /youtube_dl/extractor/vimeo.py | |
parent | 11330f5121732f80e3d6ba1c34102955427eb04b (diff) |
[vimeo] Add another config regex (closes #17013)
Diffstat (limited to 'youtube_dl/extractor/vimeo.py')
-rw-r--r-- | youtube_dl/extractor/vimeo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py index 3baa2d075..e49b233f2 100644 --- a/youtube_dl/extractor/vimeo.py +++ b/youtube_dl/extractor/vimeo.py @@ -539,9 +539,10 @@ class VimeoIE(VimeoBaseInfoExtractor): # We try to find out to which variable is assigned the config dic m_variable_name = re.search(r'(\w)\.video\.id', webpage) if m_variable_name is not None: - config_re = r'%s=({[^}].+?});' % re.escape(m_variable_name.group(1)) + config_re = [r'%s=({[^}].+?});' % re.escape(m_variable_name.group(1))] else: config_re = [r' = {config:({.+?}),assets:', r'(?:[abc])=({.+?});'] + config_re.append(r'\bvar\s+r\s*=\s*({.+?})\s*;') config = self._search_regex(config_re, webpage, 'info section', flags=re.DOTALL) config = json.loads(config) |