Basic scanning working. Time to retrofit some tests....

This commit is contained in:
Deluan
2016-02-28 15:46:53 -05:00
parent 14e52576a7
commit 515279606a
6 changed files with 85 additions and 22 deletions
+10
View File
@@ -15,4 +15,14 @@ type Track struct {
Compilation bool
CreatedAt time.Time
UpdatedAt time.Time
}
func (m *Track) RealArtist() string {
if (m.Compilation) {
return "Various Artists"
}
if (m.AlbumArtist != "") {
return m.AlbumArtist
}
return m.Artist
}