From: Sergey M․ Date: Sat, 12 Aug 2017 09:30:50 +0000 (+0700) Subject: [mixcloud] Fix play info decryption (closes #13885) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=92a5c415328953851d0a6b7893de5387a1b7b469;p=youtube-dl [mixcloud] Fix play info decryption (closes #13885) --- diff --git a/youtube_dl/extractor/mixcloud.py b/youtube_dl/extractor/mixcloud.py index 40cd2e389..52f7428e0 100644 --- a/youtube_dl/extractor/mixcloud.py +++ b/youtube_dl/extractor/mixcloud.py @@ -57,7 +57,8 @@ class MixcloudIE(InfoExtractor): def _decrypt_play_info(self, play_info, video_id): KEYS = ( 'pleasedontdownloadourmusictheartistswontgetpaid', - '(function() { return new Date().toLocaleDateString(); })()' + 'window.addEventListener = window.addEventListener || function() {};', + '(function() { return new Date().toLocaleDateString(); })()', ) play_info = base64.b64decode(play_info.encode('ascii')) for num, key in enumerate(KEYS, start=1):