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