fixed download for 360RA files

This commit is contained in:
RemixDev 2022-01-04 22:06:44 +01:00
parent 2bb03c2f50
commit 134077fcdb
No known key found for this signature in database
GPG key ID: B33962B465BDB51C

View file

@ -85,7 +85,7 @@ async function streamTrack(outputStream, track, start=0, downloadObject, listene
async function* depadder(source){
let isStart = true
for await (let chunk of source){
if (isStart && chunk[0] == 0){
if (isStart && chunk[0] == 0 && chunk.slice(4, 8).toString() !== "ftyp"){
let i
for (i = 0; i < chunk.length; i++){
let byte = chunk[i]