|
|
@ -879,8 +879,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|
|
|
r';ytplayer\.config\s*=\s*({.*?});ytplayer',
|
|
|
|
r';ytplayer\.config\s*=\s*({.*?});ytplayer',
|
|
|
|
r';ytplayer\.config\s*=\s*({.*?});',
|
|
|
|
r';ytplayer\.config\s*=\s*({.*?});',
|
|
|
|
]
|
|
|
|
]
|
|
|
|
for pattern in patterns:
|
|
|
|
config = self._search_regex(patterns, webpage, 'ytconfig.player', default=None)
|
|
|
|
config = self._search_regex(pattern, webpage, 'ytconfig.player', default=None)
|
|
|
|
|
|
|
|
if config is not None:
|
|
|
|
if config is not None:
|
|
|
|
return json.loads(uppercase_escape(config))
|
|
|
|
return json.loads(uppercase_escape(config))
|
|
|
|
|
|
|
|
|
|
|
|