diff --git a/radio4.py b/radio4.py index 3ac2a78..a041839 100755 --- a/radio4.py +++ b/radio4.py @@ -556,7 +556,8 @@ def display_current(lcd,radio,toggleScrolling): if radio.streaming: if radio.streammetadata != title: radio.streammetadata = title - metadataFormatted = radio.streammetadata.replace(" ","+") #add "+" instead of " " for icecast2 + tempmetadata = radio.streammetadata.replace(" ","+") #add "+" instead of " " for icecast2 + metadataFormatted = radio.tempmetadata.replace("&","and") #add "and" instead of "&" for icecast2 requestToSend = ("http://localhost:8001/admin/metadata?mount=/mpd&mode=updinfo&song=") +(metadataFormatted) r = requests.get((requestToSend), auth=("admin","mympd"))