This commit is contained in:
Deluan
2016-03-02 13:18:39 -05:00
parent 9d41f5a39f
commit 4843ccb46c
42 changed files with 150 additions and 160 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ import (
"strings"
)
type ItunesScanner struct {}
type ItunesScanner struct{}
func (s *ItunesScanner) LoadFolder(path string) []Track {
xml, _ := os.Open(path)
@@ -35,8 +35,8 @@ func (s *ItunesScanner) LoadFolder(path string) []Track {
}
func unescape(s string) string {
s,_ = url.QueryUnescape(s)
s, _ = url.QueryUnescape(s)
return strings.Replace(s, "&", "&", -1)
}
var _ Scanner = (*ItunesScanner)(nil)
var _ Scanner = (*ItunesScanner)(nil)