Basic scanning working. Time to retrofit some tests....
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
type ArtistInfo struct {
|
||||
ArtistId string
|
||||
Artist string
|
||||
}
|
||||
|
||||
type ArtistIndex struct {
|
||||
Id string
|
||||
Artists []ArtistInfo
|
||||
}
|
||||
|
||||
|
||||
@@ -14,14 +14,4 @@ type MediaFile struct {
|
||||
Compilation bool
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
func (m*MediaFile) RealArtist() string {
|
||||
if (m.Compilation) {
|
||||
return "Various Artists"
|
||||
}
|
||||
if (m.AlbumArtist != "") {
|
||||
return m.AlbumArtist
|
||||
}
|
||||
return m.Artist
|
||||
}
|
||||
Reference in New Issue
Block a user