aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-10-11 17:48:35 +0200
committerPřemysl Janouch <p@janouch.name>2018-10-11 17:48:35 +0200
commit33f7405404bc2f648c6e814bbeb5fea0ac62e0d7 (patch)
tree4d140803052f5188803efbb1ba54e035f5b1071e /main.go
parent61e3c68cc80a00827fc840af4b0989296ce344fa (diff)
downloadbbc-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.go3
1 files changed, 2 insertions, 1 deletions
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