]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[xtube] Fix typo
authorSergey M․ <dstftw@gmail.com>
Sat, 14 Mar 2020 15:58:10 +0000 (22:58 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 14 Mar 2020 15:58:10 +0000 (22:58 +0700)
youtube_dl/extractor/xtube.py

index 79dd647b37313221327336a02ca1f21fd176b97c..01b253dcb1e8c92232a06c0b2b4153a545dabcc1 100644 (file)
@@ -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,