mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-06 04:57:05 +01:00
[mixcloud] Fix extraction (closes #14020)
This commit is contained in:
parent
c7121fa7b8
commit
151978f38a
@ -92,7 +92,7 @@ def _real_extract(self, url):
|
||||
js = self._download_webpage(js_url, track_id, fatal=False)
|
||||
if js:
|
||||
KEY_RE_TEMPLATE = r'player\s*:\s*{.*?\b%s\s*:\s*(["\'])(?P<key>(?:(?!\1).)+)\1'
|
||||
for key_name in ('value', 'key_value', 'key_value_two'):
|
||||
for key_name in ('value', 'key_value', 'key_value.*?', '.*?value.*?'):
|
||||
key = self._search_regex(
|
||||
KEY_RE_TEMPLATE % key_name, js, 'key',
|
||||
default=None, group='key')
|
||||
|
Loading…
Reference in New Issue
Block a user