mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 00:25:15 +00:00 
			
		
		
		
	[mixcloud] Fix play info decryption (closes #13885)
This commit is contained in:
		@@ -57,7 +57,8 @@ class MixcloudIE(InfoExtractor):
 | 
				
			|||||||
    def _decrypt_play_info(self, play_info, video_id):
 | 
					    def _decrypt_play_info(self, play_info, video_id):
 | 
				
			||||||
        KEYS = (
 | 
					        KEYS = (
 | 
				
			||||||
            'pleasedontdownloadourmusictheartistswontgetpaid',
 | 
					            'pleasedontdownloadourmusictheartistswontgetpaid',
 | 
				
			||||||
            '(function() { return new Date().toLocaleDateString(); })()'
 | 
					            'window.addEventListener = window.addEventListener || function() {};',
 | 
				
			||||||
 | 
					            '(function() { return new Date().toLocaleDateString(); })()',
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
        play_info = base64.b64decode(play_info.encode('ascii'))
 | 
					        play_info = base64.b64decode(play_info.encode('ascii'))
 | 
				
			||||||
        for num, key in enumerate(KEYS, start=1):
 | 
					        for num, key in enumerate(KEYS, start=1):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user