[xtube] Fix formats extraction (closes #24348)
authorSergey M․ <dstftw@gmail.com>
Sat, 14 Mar 2020 15:57:10 +0000 (22:57 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 14 Mar 2020 15:57:10 +0000 (22:57 +0700)
youtube_dl/extractor/xtube.py

index 47caec1de49d32d0b1070c439c2f1f1acc328783..79dd647b37313221327336a02ca1f21fd176b97c 100644 (file)
@@ -98,7 +98,7 @@ class XTubeIE(InfoExtractor):
                 title = config.get('title')
                 thumbnail = config.get('poster')
                 duration = int_or_none(config.get('duration'))
-                sources = config.get('sources')
+                sources = config.get('sources') or config.get('format')
 
         if isinstance(sources, dict):
             sources = self._parse_json(self._search_regex(