0
0
Fork 0

[xtube] Fix formats extraction (closes #24348)

main
Sergey M․ 2020-03-14 22:57:10 +07:00
parent 4cbce88f8b
commit 4568a11802
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions

View File

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