use user selected profile for transcoding
This commit is contained in:
11
db/model.go
11
db/model.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user