More experimenting with tiedot

This commit is contained in:
Deluan
2016-02-27 03:35:01 -05:00
parent 4f9054b738
commit ecc0df9e7c
14 changed files with 175 additions and 35 deletions
+22 -8
View File
@@ -1,13 +1,27 @@
package models
import "time"
import (
"time"
)
type MediaFile struct {
Id string
Path string
Album string
Artist string
Title string
CreatedAt time.Time
UpdatedAt time.Time
Id string
Path string
Title string
Album string
Artist string
AlbumArtist string
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
}