diff --git a/Cargo.lock b/Cargo.lock index 2e04779..ea77f73 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1427,7 +1427,7 @@ dependencies = [ [[package]] name = "mpd_info_screen" -version = "0.2.4" +version = "0.2.5" dependencies = [ "ggez", "image", diff --git a/Cargo.toml b/Cargo.toml index 2321829..5b10826 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mpd_info_screen" -version = "0.2.4" +version = "0.2.5" edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index def6bac..9d2a0c1 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ counter, and the filename currently being played # Usage - mpd_info_screen 0.2.4 + mpd_info_screen 0.2.5 USAGE: mpd_info_screen [FLAGS] [OPTIONS] [port] diff --git a/src/mpd_handler.rs b/src/mpd_handler.rs index ffec118..2b72412 100644 --- a/src/mpd_handler.rs +++ b/src/mpd_handler.rs @@ -319,7 +319,7 @@ impl MPDHandler { } pub fn is_art_data_ready(&self) -> bool { - self.art_data.len() == self.art_data_size + self.art_data_size != 0 && self.art_data.len() == self.art_data_size } pub fn get_art_data(&self) -> &[u8] {