Skip to content

Commit

Permalink
[xtube] Fix formats extraction (closes #24348)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and pareronia committed Jun 22, 2020
1 parent d919110 commit ed2880f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/xtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _real_extract(self, url):
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(
Expand Down

0 comments on commit ed2880f

Please sign in to comment.