1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 11:41:52 +00:00

[xtube] Fix typo

This commit is contained in:
Sergey M․ 2020-03-14 22:58:10 +07:00
parent 4568a11802
commit 158bc5ac03
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View 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,