From a7fc247331199956acd30968f7bd67e16e32b1a3 Mon Sep 17 00:00:00 2001 From: spezifisch Date: Sat, 12 Oct 2024 01:32:01 +0200 Subject: [PATCH] fix wrong order of args, gofmt all --- mpvplayer/player.go | 2 +- page_search.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mpvplayer/player.go b/mpvplayer/player.go index faa67ac..fb13811 100644 --- a/mpvplayer/player.go +++ b/mpvplayer/player.go @@ -126,7 +126,7 @@ func (p *Player) PlayNextTrack() error { } func (p *Player) PlayUri(id, uri, title, artist, album string, duration, track, disc int, coverArtId string) error { - p.queue = []QueueItem{{id, uri, title, artist, duration, album, track, disc, coverArtId}} + p.queue = []QueueItem{{id, uri, title, artist, duration, album, track, coverArtId, disc}} p.replaceInProgress = true if ip, e := p.IsPaused(); ip && e == nil { if err := p.Pause(); err != nil { diff --git a/page_search.go b/page_search.go index ace2cbd..3981b01 100644 --- a/page_search.go +++ b/page_search.go @@ -251,7 +251,7 @@ func (s *SearchPage) addArtistToQueue(entity subsonic.Ider) { artistId := response.Artist.Id for _, album := range response.Artist.Album { response, err = s.ui.connection.GetAlbum(album.Id) - if err != nil { + if err != nil { s.logger.Printf("error getting album %s while adding artist to queue", album.Id) return }