]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[mixcloud] Fix extraction (closes #14020)
authorVijay Singh <sudovijay@users.noreply.github.com>
Sat, 26 Aug 2017 12:32:57 +0000 (18:02 +0530)
committerSergey M <dstftw@gmail.com>
Sat, 26 Aug 2017 12:32:57 +0000 (19:32 +0700)
youtube_dl/extractor/mixcloud.py

index 25d3fc4b3bb27d122939cfcf2f08bb9d49bb3c27..f6360cce6767c7281a661f6e1cf18bbfe8924fe9 100644 (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.*?', '.*?value.*?'):
                         key = self._search_regex(
                             KEY_RE_TEMPLATE % key_name, js, 'key',
                             default=None, group='key')