[youtube] Send the list of patterns directly to _search_regex
This commit is contained in:
parent
0e49d9a6b0
commit
b41631c4e6
1 changed files with 3 additions and 4 deletions
|
@ -879,8 +879,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
r';ytplayer\.config\s*=\s*({.*?});ytplayer',
|
||||
r';ytplayer\.config\s*=\s*({.*?});',
|
||||
]
|
||||
for pattern in patterns:
|
||||
config = self._search_regex(pattern, webpage, 'ytconfig.player', default=None)
|
||||
config = self._search_regex(patterns, webpage, 'ytconfig.player', default=None)
|
||||
if config is not None:
|
||||
return json.loads(uppercase_escape(config))
|
||||
|
||||
|
|
Loading…
Reference in a new issue