Skip to content

Commit

Permalink
Do not attach Genres to the "Various Artists" artist
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Sep 28, 2021
1 parent 73659e5 commit e17d436
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions persistence/artist_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/astaxie/beego/orm"
"github.com/deluan/rest"
"github.com/navidrome/navidrome/conf"
"github.com/navidrome/navidrome/consts"
"github.com/navidrome/navidrome/log"
"github.com/navidrome/navidrome/model"
"github.com/navidrome/navidrome/utils"
Expand Down Expand Up @@ -66,6 +67,9 @@ func (r *artistRepository) Put(a *model.Artist) error {
if err != nil {
return err
}
if a.ID == consts.VariousArtistsID {
return r.updateGenres(a.ID, r.tableName, nil)
}
return r.updateGenres(a.ID, r.tableName, a.Genres)
}

Expand Down

0 comments on commit e17d436

Please sign in to comment.