From 33f7405404bc2f648c6e814bbeb5fea0ac62e0d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Thu, 11 Oct 2018 17:48:35 +0200 Subject: Replace apostrophes with Unicode Although MPD seems to test that they work, they don't for me. --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 0c257cb..8946aa5 100644 --- a/main.go +++ b/main.go @@ -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 -- cgit v1.2.3