mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-07 05:47:20 +08:00
[xtube] Ensure sources variable is initialized
This commit is contained in:
parent
f712dbafa7
commit
ae84227e16
@ -92,6 +92,7 @@ class XTubeIE(InfoExtractor):
|
||||
config = self._parse_json(self._search_regex(
|
||||
r'playerConf\s*=\s*({.+?})\s*,\s*\n', webpage, 'config',
|
||||
default='{}'), video_id, transform_source=js_to_json, fatal=False)
|
||||
sources = {}
|
||||
if config:
|
||||
config = config.get('mainRoll')
|
||||
if isinstance(config, dict):
|
||||
|
Loading…
x
Reference in New Issue
Block a user