1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-24 05:02:50 +08:00

[Update] Mixcloud.com

They keep doing this minor changes so i quess this one fits the best for now
This commit is contained in:
Vijay Singh 2017-08-26 04:49:28 +05:30 committed by GitHub
parent 745968bc72
commit 476203750f

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_two'):
for key_name in ('value', 'key_value', 'key_value_\w+'):
key = self._search_regex(
KEY_RE_TEMPLATE % key_name, js, 'key',
default=None, group='key')