mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 12:37:37 +03:00
Return genres in bookmark endpoints (OpenSubsonic)
This commit is contained in:
parent
595186b1b2
commit
a9cf54afef
1 changed files with 5 additions and 0 deletions
|
@ -104,6 +104,11 @@ func (r sqlRepository) GetBookmarks() (model.Bookmarks, error) {
|
|||
log.Error(r.ctx, "Error getting mediafiles with bookmarks", "user", user.UserName, err)
|
||||
return nil, err
|
||||
}
|
||||
err = r.loadMediaFileGenres(&mfs)
|
||||
if err != nil {
|
||||
log.Error(r.ctx, "Error loading genres for bookmarked songs", "user", user.UserName, err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
ids := make([]string, len(mfs))
|
||||
mfMap := make(map[string]int)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue