From: Jaime Marquínez Ferrándiz Date: Wed, 1 Jan 2014 20:07:55 +0000 (+0100) Subject: [mixcloud] Fix track url transformation (fixes #2068) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=5ffecde73fa88fbe32f4ec2151e1cd0581053843;p=youtube-dl [mixcloud] Fix track url transformation (fixes #2068) ‘/previews/‘ must be replaced with ‘/c/originals/‘ now. --- diff --git a/youtube_dl/extractor/mixcloud.py b/youtube_dl/extractor/mixcloud.py index 125d81551..7c54ea0f4 100644 --- a/youtube_dl/extractor/mixcloud.py +++ b/youtube_dl/extractor/mixcloud.py @@ -53,7 +53,7 @@ class MixcloudIE(InfoExtractor): info = json.loads(json_data) preview_url = self._search_regex(r'data-preview-url="(.+?)"', webpage, u'preview url') - song_url = preview_url.replace('/previews/', '/cloudcasts/originals/') + song_url = preview_url.replace('/previews/', '/c/originals/') template_url = re.sub(r'(stream\d*)', 'stream%d', song_url) final_song_url = self._get_url(template_url) if final_song_url is None: