deezer: fixed endless export loop if user's listen history is empty

This commit is contained in:
Philipp Wolfer 2025-05-24 18:22:42 +02:00
parent 93767df567
commit c29b2e20cd
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B

View file

@ -105,6 +105,11 @@ out:
return
}
// No result, break immediately
if result.Total == 0 {
break out
}
// The offset was higher then the actual number of tracks. Adjust the offset
// and continue.
if offset >= result.Total {