use user selected profile for transcoding

This commit is contained in:
sentriz
2020-03-12 00:27:49 +00:00
parent 5343b0e44b
commit 14481aab87
5 changed files with 79 additions and 65 deletions

View File

@@ -94,6 +94,17 @@ func (t *Track) MIME() string {
return mime.Types[ext]
}
func (t *Track) RelPath() string {
if t.Album == nil {
return ""
}
return path.Join(
t.Album.LeftPath,
t.Album.RightPath,
t.Filename,
)
}
type User struct {
ID int `gorm:"primary_key"`
CreatedAt time.Time