GetStarred now returns starred songs

This commit is contained in:
Deluan 2016-03-23 19:02:58 -04:00
parent 1ed8c60130
commit d59394c653
5 changed files with 34 additions and 3 deletions

View file

@ -99,3 +99,11 @@ func FromAlbums(albums domain.Albums) Entries {
}
return entries
}
func FromMediaFiles(mfs domain.MediaFiles) Entries {
entries := make(Entries, len(mfs))
for i, mf := range mfs {
entries[i] = FromMediaFile(&mf)
}
return entries
}