bump to version 0.2.0

This commit is contained in:
Henrik Friedrichsen
2020-07-17 23:49:47 +02:00
parent 628f131085
commit f0c42afc7d
3 changed files with 4 additions and 12 deletions

2
Cargo.lock generated
View File

@@ -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)",

View File

@@ -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"]

View File

@@ -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(),
)), )),
); );