1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[mixcloud] Fix play info decryption (closes #13885)

This commit is contained in:
Sergey M․ 2017-08-12 16:30:50 +07:00
parent 1663bd6e1c
commit 92a5c41532
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

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