1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-24 04:33:15 +08:00

Update mixcloud.py

This commit is contained in:
Sergey M 2017-08-26 19:32:08 +07:00 committed by GitHub
parent 476203750f
commit 3ab13ed721

View File

@ -92,7 +92,7 @@ class MixcloudIE(InfoExtractor):
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_\w+'):
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')