Implementing coverArt

This commit is contained in:
Deluan
2016-03-03 10:34:17 -05:00
parent 80880434aa
commit 1b945831cc
9 changed files with 40 additions and 8 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ func (s *ItunesScanner) LoadFolder(path string) []Track {
}
mediaFiles[i].BitRate = t.BitRate
path, _ = url.QueryUnescape(t.Location)
path = strings.TrimPrefix(path, "file://")
path = strings.TrimPrefix(unescape(path), "file://")
mediaFiles[i].Path = path
mediaFiles[i].Suffix = strings.TrimPrefix(filepath.Ext(path), ".")
mediaFiles[i].CreatedAt = t.DateAdded