Artist for a given Genre doesn't work now, IIRC I remember there being

some chatter in #dev about it
This commit is contained in:
Rob Emery 2025-04-20 13:01:41 +01:00
parent c1fde0f4e4
commit 9befc4abab

View File

@ -193,7 +193,7 @@ func handleGenre(matchResults map[string]string, ret []interface{}, cds *content
}
return cds.doMediaFiles(tracks, o.Path, ret, host)
} else if matchResults["Genre"] != "" {
if matchResults["GenreArtist"] == "" {
if matchResults["GenreArtist"] == "" { //TODO, I think this isn't possible/obvious at the moment since the bfr.
artists, err := cds.ds.Artist(cds.ctx).GetAll(model.QueryOptions{Filters: squirrel.Eq{"genre.id": matchResults["Genre"]}})
if err != nil {
fmt.Printf("Error retrieving artists for genre: %+v", err)