Browse Source

[mixcloud] Fix extraction (closes #14020)

master
Vijay Singh 7 years ago
committed by Sergey M
parent
commit
151978f38a
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/mixcloud.py

2
youtube_dl/extractor/mixcloud.py

@ -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')

Loading…
Cancel
Save