aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/xtube.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-03-14 22:58:10 +0700
committerSergey M․ <dstftw@gmail.com>2020-03-14 22:58:10 +0700
commit158bc5ac03a175d95337979afa02f7423c2bf445 (patch)
tree111c7a2efad6814cfd3cd66d3f112d1a7c15ff51 /youtube_dl/extractor/xtube.py
parent4568a11802b47c22ac43d1187435ab2e6d7a3c6d (diff)
[xtube] Fix typo
Diffstat (limited to 'youtube_dl/extractor/xtube.py')
-rw-r--r--youtube_dl/extractor/xtube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/xtube.py b/youtube_dl/extractor/xtube.py
index 79dd647b3..01b253dcb 100644
--- a/youtube_dl/extractor/xtube.py
+++ b/youtube_dl/extractor/xtube.py
@@ -100,7 +100,7 @@ class XTubeIE(InfoExtractor):
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,