commit 158bc5ac03a175d95337979afa02f7423c2bf445
parent 4568a11802b47c22ac43d1187435ab2e6d7a3c6d
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sat, 14 Mar 2020 22:58:10 +0700

[xtube] Fix typo

Diffstat:
Myoutube_dl/extractor/xtube.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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,