X-Git-Url: https://git.jacobcasper.com/?p=xsetrootd.git;a=blobdiff_plain;f=src%2Fmain.rs;fp=src%2Fmain.rs;h=800cf54534953f41411b65342c1a4825565e835c;hp=ca15fa2ebfefeac50907e4b98c5360e0d7b3a492;hb=6d3ac36bd8cf04e1357e6853a059692e42089288;hpb=6336104a10237e92c5e92e9bd1241c44ab5332e7 diff --git a/src/main.rs b/src/main.rs index ca15fa2..800cf54 100644 --- a/src/main.rs +++ b/src/main.rs @@ -55,7 +55,7 @@ fn update_map(arc_map: Arc>>, key: &str, val: &str .arg("-name") .arg(format!( "[{playback_status} {title} - {artist}] | ✉ {unread_count} | {date_time}", - playback_status = map.get("playback-status").unwrap_or(&String::from("🔈")), + playback_status = map.get("playback_status").unwrap_or(&String::from("🔈")), title = map.get("title").unwrap_or(&String::from("")), artist = map.get("artist").unwrap_or(&String::from("")), unread_count = map.get("unread_count").unwrap_or(&String::from("?")), @@ -125,7 +125,7 @@ fn main() -> Result<(), Box> { update_map( spotify_match_map.clone(), "playback_status", - match &*playback_status.as_str().unwrap_or("🔈") { + match &*playback_status.as_str().unwrap_or("") { "Playing" => "🔊", _ => "🔈", },