mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Create contents label for group of shared mediafiles
This commit is contained in:
parent
63e67bd502
commit
6c05fcb699
3 changed files with 84 additions and 17 deletions
|
@ -38,6 +38,9 @@ func (api *Router) buildShare(r *http.Request, share model.Share) responses.Shar
|
|||
LastVisited: share.LastVisitedAt,
|
||||
VisitCount: share.VisitCount,
|
||||
}
|
||||
if resp.Description == "" {
|
||||
resp.Description = share.Contents
|
||||
}
|
||||
if len(share.Albums) > 0 {
|
||||
resp.Entry = childrenFromAlbums(r.Context(), share.Albums)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue