projects
/
xsetrootd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Get title of currently playing track
[xsetrootd.git]
/
src
/
main.rs
diff --git
a/src/main.rs
b/src/main.rs
index
1d8624e
..
9380027
100644
(file)
--- a/
src/main.rs
+++ b/
src/main.rs
@@
-31,6
+31,9
@@
fn main() -> Result<(), Box<dyn std::error::Error>> {
let artist = String::from(inner_value.as_str()?);
println!("artist: {}", artist);
}
+ "xesam:title" => {
+ println!("title: {}", value?.as_iter()?.next()?.as_str()?);
+ }
_ => (),
}
}