Fixed (?) Artist x AlbumArtist
This commit is contained in:
@@ -40,7 +40,7 @@ func (c *GetMusicDirectoryController) Get() {
|
|||||||
dir.Child[i].IsDir = true
|
dir.Child[i].IsDir = true
|
||||||
dir.Child[i].Album = al.Name
|
dir.Child[i].Album = al.Name
|
||||||
dir.Child[i].Year = al.Year
|
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
|
dir.Child[i].Genre = al.Genre
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -55,7 +55,7 @@ func (c *GetMusicDirectoryController) Get() {
|
|||||||
dir.Child[i].IsDir = false
|
dir.Child[i].IsDir = false
|
||||||
dir.Child[i].Album = mf.Album
|
dir.Child[i].Album = mf.Album
|
||||||
dir.Child[i].Year = mf.Year
|
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].Genre = mf.Genre
|
||||||
dir.Child[i].Track = mf.Track
|
dir.Child[i].Track = mf.Track
|
||||||
dir.Child[i].Duration = mf.Duration
|
dir.Child[i].Duration = mf.Duration
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ type Album struct {
|
|||||||
Name string
|
Name string
|
||||||
ArtistId string `parent:"artist"`
|
ArtistId string `parent:"artist"`
|
||||||
CoverArtPath string // TODO http://stackoverflow.com/questions/13795842/linking-itunes-itc2-files-and-ituneslibrary-xml
|
CoverArtPath string // TODO http://stackoverflow.com/questions/13795842/linking-itunes-itc2-files-and-ituneslibrary-xml
|
||||||
|
Artist string
|
||||||
|
AlbumArtist string
|
||||||
Year int
|
Year int
|
||||||
Compilation bool
|
Compilation bool
|
||||||
Rating int
|
Rating int
|
||||||
|
|||||||
@@ -88,6 +88,8 @@ func parseTrack(t *Track) (*domain.MediaFile, *domain.Album, *domain.Artist) {
|
|||||||
Year: t.Year,
|
Year: t.Year,
|
||||||
Compilation: t.Compilation,
|
Compilation: t.Compilation,
|
||||||
Genre: t.Genre,
|
Genre: t.Genre,
|
||||||
|
Artist: t.Artist,
|
||||||
|
AlbumArtist: t.AlbumArtist,
|
||||||
}
|
}
|
||||||
|
|
||||||
artist := &domain.Artist{
|
artist := &domain.Artist{
|
||||||
|
|||||||
Reference in New Issue
Block a user