Replace apostrophes with Unicode
Although MPD seems to test that they work, they don't for me.
This commit is contained in:
parent
61e3c68cc8
commit
33f7405404
3
main.go
3
main.go
|
@ -305,7 +305,8 @@ func proxy(w http.ResponseWriter, req *http.Request) {
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case title := <-metaChan:
|
case title := <-metaChan:
|
||||||
queuedMetaUpdate = []byte(fmt.Sprintf("StreamTitle='%s'", title))
|
queuedMetaUpdate = []byte(fmt.Sprintf("StreamTitle='%s'",
|
||||||
|
strings.Replace(title, "'", "’", -1)))
|
||||||
case chunk, ok := <-chunkChan:
|
case chunk, ok := <-chunkChan:
|
||||||
if !ok {
|
if !ok {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue