projects
/
xsetrootd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
79b46cd
)
Get title of currently playing track
author
Jacob Casper
<dev@jacobcasper.com>
Sun, 18 Oct 2020 01:50:15 +0000
(20:50 -0500)
committer
Jacob Casper
<dev@jacobcasper.com>
Sun, 18 Oct 2020 01:50:15 +0000
(20:50 -0500)
src/main.rs
patch
|
blob
|
blame
|
history
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()?);
+ }
_ => (),
}
}