Replace apostrophes with Unicode

Although MPD seems to test that they work, they don't for me.
This commit is contained in:
Přemysl Eric Janouch 2018-10-11 17:48:35 +02:00
parent 61e3c68cc8
commit 33f7405404
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 1 deletions

View File

@ -305,7 +305,8 @@ func proxy(w http.ResponseWriter, req *http.Request) {
for {
select {
case title := <-metaChan:
queuedMetaUpdate = []byte(fmt.Sprintf("StreamTitle='%s'", title))
queuedMetaUpdate = []byte(fmt.Sprintf("StreamTitle='%s'",
strings.Replace(title, "'", "", -1)))
case chunk, ok := <-chunkChan:
if !ok {
return