mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-22 18:09:46 +01:00
Fixing NowPlaying when we have more than one song in the queue
This commit is contained in:
parent
c8184da0ed
commit
1a705d4319
2 changed files with 16 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ func (r *nowPlayingRepository) Count(playerId int) (int64, error) {
|
|||
|
||||
// TODO Will not work for multiple players
|
||||
func (r *nowPlayingRepository) GetAll() ([]*engine.NowPlayingInfo, error) {
|
||||
np, err := r.Tail(1)
|
||||
np, err := r.Head(1)
|
||||
if np == nil || err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue