bump to version 0.2.0
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -1671,7 +1671,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "ncspot"
|
||||
version = "0.1.4"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"chrono 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"clap 2.33.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "ncspot"
|
||||
description = "ncurses Spotify client written in Rust using librespot, inspired by ncmpc and the likes."
|
||||
exclude = ["screenshots/**"]
|
||||
version = "0.1.4"
|
||||
version = "0.2.0"
|
||||
authors = ["Henrik Friedrichsen <henrik@affekt.org>"]
|
||||
repository = "https://github.com/hrkfdn/ncspot"
|
||||
keywords = ["spotify", "ncurses", "librespot"]
|
||||
|
||||
12
src/mpris.rs
12
src/mpris.rs
@@ -34,13 +34,7 @@ fn get_metadata(playable: Option<Playable>) -> Metadata {
|
||||
|
||||
hm.insert(
|
||||
"mpris:trackid".to_string(),
|
||||
Variant(Box::new(
|
||||
playable
|
||||
.map(|t| {
|
||||
t.uri()
|
||||
})
|
||||
.unwrap_or_default(),
|
||||
)),
|
||||
Variant(Box::new(playable.map(|t| t.uri()).unwrap_or_default())),
|
||||
);
|
||||
hm.insert(
|
||||
"mpris:length".to_string(),
|
||||
@@ -117,9 +111,7 @@ fn get_metadata(playable: Option<Playable>) -> Metadata {
|
||||
"xesam:url".to_string(),
|
||||
Variant(Box::new(
|
||||
playable
|
||||
.map(|t| {
|
||||
t.share_url().unwrap_or_default()
|
||||
})
|
||||
.map(|t| t.share_url().unwrap_or_default())
|
||||
.unwrap_or_default(),
|
||||
)),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user