mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-07 06:27:36 +03:00
search3.view implemented
This commit is contained in:
parent
a562bfd17e
commit
2319454997
5 changed files with 68 additions and 14 deletions
|
@ -38,10 +38,20 @@ type Entry struct {
|
|||
MinutesAgo int
|
||||
PlayerId int
|
||||
PlayerName string
|
||||
AlbumCount int
|
||||
}
|
||||
|
||||
type Entries []Entry
|
||||
|
||||
func FromArtist(ar *domain.Artist) Entry {
|
||||
e := Entry{}
|
||||
e.Id = ar.Id
|
||||
e.Title = ar.Name
|
||||
e.AlbumCount = ar.AlbumCount
|
||||
e.IsDir = true
|
||||
return e
|
||||
}
|
||||
|
||||
func FromAlbum(al *domain.Album) Entry {
|
||||
e := Entry{}
|
||||
e.Id = al.Id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue