Fixed string decoding during import
This commit is contained in:
@@ -7,8 +7,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
"fmt"
|
|
||||||
"github.com/astaxie/beego"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type ItunesScanner struct{}
|
type ItunesScanner struct{}
|
||||||
@@ -51,10 +49,6 @@ func (s *ItunesScanner) LoadFolder(path string) []Track {
|
|||||||
|
|
||||||
func unescape(str string) string {
|
func unescape(str string) string {
|
||||||
s := strings.Replace(str, "&", "&", -1)
|
s := strings.Replace(str, "&", "&", -1)
|
||||||
s, err := url.QueryUnescape(s)
|
|
||||||
if err != nil {
|
|
||||||
beego.Warn("Error importing string", str, ":", err)
|
|
||||||
}
|
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user