Browse Source

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

master-ytdl-org
Sergey M․ 6 years ago
parent
commit
85fa80d5f9
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      youtube_dl/extractor/vimeo.py

+ 1
- 0
youtube_dl/extractor/vimeo.py View File

@ -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…
Cancel
Save