From: Jacob Casper Date: Sun, 18 Oct 2020 01:50:15 +0000 (-0500) Subject: Get title of currently playing track X-Git-Url: https://git.jacobcasper.com/?p=xsetrootd.git;a=commitdiff_plain;h=b710f9dca5681fe1b2fcddab6e1d78a3a0d86668 Get title of currently playing track --- diff --git a/src/main.rs b/src/main.rs index 1d8624e..9380027 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,6 +31,9 @@ fn main() -> Result<(), Box> { let artist = String::from(inner_value.as_str()?); println!("artist: {}", artist); } + "xesam:title" => { + println!("title: {}", value?.as_iter()?.next()?.as_str()?); + } _ => (), } }