mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-07 06:32:15 +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(
|
config = self._parse_json(self._search_regex(
|
||||||
r'playerConf\s*=\s*({.+?})\s*,\s*\n', webpage, 'config',
|
r'playerConf\s*=\s*({.+?})\s*,\s*\n', webpage, 'config',
|
||||||
default='{}'), video_id, transform_source=js_to_json, fatal=False)
|
default='{}'), video_id, transform_source=js_to_json, fatal=False)
|
||||||
|
sources = {}
|
||||||
if config:
|
if config:
|
||||||
config = config.get('mainRoll')
|
config = config.get('mainRoll')
|
||||||
if isinstance(config, dict):
|
if isinstance(config, dict):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user