From b524172d5a8005831e692f813414607f4b1a8d4a Mon Sep 17 00:00:00 2001 From: RemixDev Date: Tue, 4 Jan 2022 22:12:00 +0100 Subject: [PATCH] fixed download for 360RA files --- deemix/decryption.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deemix/decryption.py b/deemix/decryption.py index 2d30946..29250af 100644 --- a/deemix/decryption.py +++ b/deemix/decryption.py @@ -86,7 +86,7 @@ def streamTrack(outputStream, track, start=0, downloadObject=None, listener=None if len(chunk) >= 2048: chunk = decryptChunk(blowfish_key, chunk[0:2048]) + chunk[2048:] - if isStart and chunk[0] == 0: + if isStart and chunk[0] == 0 and chunk[4:8].decode('utf-8') != "ftyp": for i, byte in enumerate(chunk): if byte != 0: break chunk = chunk[i:]