mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2024-12-28 02:26:14 +00:00
fixed download for 360RA files
This commit is contained in:
parent
463289ac46
commit
b524172d5a
|
@ -86,7 +86,7 @@ def streamTrack(outputStream, track, start=0, downloadObject=None, listener=None
|
||||||
if len(chunk) >= 2048:
|
if len(chunk) >= 2048:
|
||||||
chunk = decryptChunk(blowfish_key, chunk[0:2048]) + 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):
|
for i, byte in enumerate(chunk):
|
||||||
if byte != 0: break
|
if byte != 0: break
|
||||||
chunk = chunk[i:]
|
chunk = chunk[i:]
|
||||||
|
|
Loading…
Reference in a new issue