mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-16 04:00:38 +03:00
Fixed (?) Artist x AlbumArtist
This commit is contained in:
parent
7d5cafb17a
commit
1aeb22dcb7
@ -40,7 +40,7 @@ func (c *GetMusicDirectoryController) Get() {
|
||||
dir.Child[i].IsDir = true
|
||||
dir.Child[i].Album = al.Name
|
||||
dir.Child[i].Year = al.Year
|
||||
dir.Child[i].Artist = a.Name //TODO AlbumArtist
|
||||
dir.Child[i].Artist = al.Artist
|
||||
dir.Child[i].Genre = al.Genre
|
||||
}
|
||||
} else {
|
||||
@ -55,7 +55,7 @@ func (c *GetMusicDirectoryController) Get() {
|
||||
dir.Child[i].IsDir = false
|
||||
dir.Child[i].Album = mf.Album
|
||||
dir.Child[i].Year = mf.Year
|
||||
dir.Child[i].Artist = mf.AlbumArtist
|
||||
dir.Child[i].Artist = mf.Artist
|
||||
dir.Child[i].Genre = mf.Genre
|
||||
dir.Child[i].Track = mf.Track
|
||||
dir.Child[i].Duration = mf.Duration
|
||||
|
@ -5,6 +5,8 @@ type Album struct {
|
||||
Name string
|
||||
ArtistId string `parent:"artist"`
|
||||
CoverArtPath string // TODO http://stackoverflow.com/questions/13795842/linking-itunes-itc2-files-and-ituneslibrary-xml
|
||||
Artist string
|
||||
AlbumArtist string
|
||||
Year int
|
||||
Compilation bool
|
||||
Rating int
|
||||
|
@ -88,6 +88,8 @@ func parseTrack(t *Track) (*domain.MediaFile, *domain.Album, *domain.Artist) {
|
||||
Year: t.Year,
|
||||
Compilation: t.Compilation,
|
||||
Genre: t.Genre,
|
||||
Artist: t.Artist,
|
||||
AlbumArtist: t.AlbumArtist,
|
||||
}
|
||||
|
||||
artist := &domain.Artist{
|
||||
|
Loading…
x
Reference in New Issue
Block a user