mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-16 01:59:29 +02:00
Maloja, ListenBrainz: Complete progress on error
This commit is contained in:
parent
74f2a3cef7
commit
3ded679d80
2 changed files with 2 additions and 0 deletions
|
@ -64,6 +64,7 @@ out:
|
|||
for {
|
||||
result, err := b.client.GetListens(b.username, maxTime, minTime)
|
||||
if err != nil {
|
||||
progress <- p.Complete()
|
||||
results <- models.ListensResult{Error: err}
|
||||
return
|
||||
}
|
||||
|
|
|
@ -63,6 +63,7 @@ out:
|
|||
for {
|
||||
result, err := b.client.GetScrobbles(page, perPage)
|
||||
if err != nil {
|
||||
progress <- p.Complete()
|
||||
results <- models.ListensResult{Error: err}
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue