fix qobuz EOF downloads with mobile fallback flow

This commit is contained in:
2026-05-01 17:23:52 +02:00
parent 9618108f2a
commit 59b476034e
3 changed files with 640 additions and 0 deletions

View File

@@ -129,6 +129,11 @@ func (d *Downloader) FileDeezerEncrypted(ctx context.Context, sourceURL, outputP
)
defer bar.SetTotal(-1, true)
}
defer func() {
if !success && bar != nil {
bar.Abort(true)
}
}()
}
block, err := blowfish.NewCipher(deriveDeezerBlowfishKey(trackID))
@@ -249,6 +254,11 @@ func (d *Downloader) file(ctx context.Context, sourceURL, outputPath string, all
)
defer bar.SetTotal(-1, true)
}
defer func() {
if !success && bar != nil {
bar.Abort(true)
}
}()
buf := make([]byte, downloadBufferSize)
totalWritten := int64(0)
for {