Skip to content

Commit

Permalink
fix wrong order of args, gofmt all
Browse files Browse the repository at this point in the history
  • Loading branch information
spezifisch committed Oct 11, 2024
1 parent 5ee2dfc commit a7fc247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mpvplayer/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion page_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a7fc247

Please sign in to comment.