diff options
author | Přemysl Janouch <p@janouch.name> | 2018-10-11 17:48:35 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-10-11 17:48:35 +0200 |
commit | 33f7405404bc2f648c6e814bbeb5fea0ac62e0d7 (patch) | |
tree | 4d140803052f5188803efbb1ba54e035f5b1071e /main.go | |
parent | 61e3c68cc80a00827fc840af4b0989296ce344fa (diff) | |
download | bbc-on-ice-33f7405404bc2f648c6e814bbeb5fea0ac62e0d7.tar.gz bbc-on-ice-33f7405404bc2f648c6e814bbeb5fea0ac62e0d7.tar.xz bbc-on-ice-33f7405404bc2f648c6e814bbeb5fea0ac62e0d7.zip |
Replace apostrophes with Unicode
Although MPD seems to test that they work, they don't for me.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |