Don't html_escape output, this was fixed in waybar

This commit is contained in:
Erwin Boskma 2022-11-28 11:58:58 +01:00
parent 5bdc133871
commit 10efd967e5
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU

View file

@ -415,13 +415,13 @@ impl HomeAssistant {
String::new() String::new()
}; };
let now_playing = if let Some(channel) = maybe_channel { let text = if let Some(channel) = maybe_channel {
format!("{volume}[{channel}] {artist} - {title}") format!("{volume}[{channel}] {artist} - {title}")
} else { } else {
format!("{volume}{artist} - {title}") format!("{volume}{artist} - {title}")
}; };
let text = html_escape::encode_text(&now_playing).to_string(); // let text = html_escape::encode_text(&now_playing).to_string();
match self.format { match self.format {
OutputFormat::Waybar => Waybar::builder() OutputFormat::Waybar => Waybar::builder()