mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-09 13:58:05 -05:00
Call done function even if the playlist or album is cached
This commit is contained in:
@@ -71,6 +71,7 @@ func GetPlaylist(playlistId spotify.ID, done func(bool, error)) (*Playlist, erro
|
||||
playlistCache[fp.ID] = p
|
||||
return p, nil
|
||||
} else {
|
||||
done(true, nil)
|
||||
return playlistCache[fp.ID], nil
|
||||
}
|
||||
}
|
||||
@@ -112,6 +113,7 @@ func GetAlbum(albumID spotify.ID, done func(bool, error)) (*Album, error) {
|
||||
albumCache[fa.ID] = p
|
||||
return p, nil
|
||||
} else {
|
||||
done(true, nil)
|
||||
return albumCache[albumID], nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user