mirror of
https://git.sr.ht/~phw/scotty
synced 2025-05-31 10:58:35 +02:00
deezer: fixed endless export loop if user's listen history is empty
This commit is contained in:
parent
93767df567
commit
c29b2e20cd
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue