Skip to content

Commit

Permalink
[xtube] Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and pareronia committed Jun 22, 2020
1 parent ed2880f commit 42e5379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/xtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _real_extract(self, url):
duration = int_or_none(config.get('duration'))
sources = config.get('sources') or config.get('format')

if isinstance(sources, dict):
if not isinstance(sources, dict):
sources = self._parse_json(self._search_regex(
r'(["\'])?sources\1?\s*:\s*(?P<sources>{.+?}),',
webpage, 'sources', group='sources'), video_id,
Expand Down

0 comments on commit 42e5379

Please sign in to comment.