aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/xtube.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-03-14 22:57:10 +0700
committerSergey M․ <dstftw@gmail.com>2020-03-14 22:57:10 +0700
commit4568a11802b47c22ac43d1187435ab2e6d7a3c6d (patch)
treecd4a72d15d4439e53d5109b3770674982105e4be /youtube_dl/extractor/xtube.py
parent4cbce88f8b44ab17d55fe1b7615e37a2c1f142d7 (diff)
[xtube] Fix formats extraction (closes #24348)
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 47caec1de..79dd647b3 100644
--- a/youtube_dl/extractor/xtube.py
+++ b/youtube_dl/extractor/xtube.py
@@ -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(