remove globals

This commit is contained in:
sentriz
2020-05-03 04:43:00 +01:00
parent 9bf80f4b18
commit ee9335f71e
11 changed files with 188 additions and 163 deletions

View File

@@ -94,8 +94,8 @@ func (t *Track) Ext() string {
}
func (t *Track) MIME() string {
ext := t.Ext()
return mime.Types[ext]
v, _ := mime.FromExtension(t.Ext())
return v
}
func (t *Track) RelPath() string {