Browse Source

[xtube] Fix typo

master
Sergey M․ 5 years ago
parent
commit
158bc5ac03
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/xtube.py

+ 1
- 1
youtube_dl/extractor/xtube.py View File

@ -100,7 +100,7 @@ class XTubeIE(InfoExtractor):
duration = int_or_none(config.get('duration')) duration = int_or_none(config.get('duration'))
sources = config.get('sources') or config.get('format') sources = config.get('sources') or config.get('format')
if isinstance(sources, dict):
if not isinstance(sources, dict):
sources = self._parse_json(self._search_regex( sources = self._parse_json(self._search_regex(
r'(["\'])?sources\1?\s*:\s*(?P<sources>{.+?}),', r'(["\'])?sources\1?\s*:\s*(?P<sources>{.+?}),',
webpage, 'sources', group='sources'), video_id, webpage, 'sources', group='sources'), video_id,


Loading…
Cancel
Save