diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-08-12 16:30:50 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-08-12 16:30:50 +0700 |
commit | 92a5c415328953851d0a6b7893de5387a1b7b469 (patch) | |
tree | fb80d887b68e5e91c7f841b01143f521a91b0ed7 /youtube_dl/extractor | |
parent | 1663bd6e1c11bf6cbf290fcbbf12358207570faf (diff) |
[mixcloud] Fix play info decryption (closes #13885)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/mixcloud.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |