diff --git a/Cargo.lock b/Cargo.lock index 9925244..6f3f9d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -268,7 +268,7 @@ dependencies = [ [[package]] name = "noise" -version = "0.1.7" +version = "0.1.8" dependencies = [ "clap", "clap_complete", diff --git a/Cargo.toml b/Cargo.toml index afe0ed3..2937ab7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "noise" -version = "0.1.7" +version = "0.1.8" edition = "2024" authors = ["Nox Sluijtman"] diff --git a/src/main.rs b/src/main.rs index cc9bf03..9203c39 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,17 +60,18 @@ fn main() { | Commands::Search { .. } | Commands::Find { .. } | Commands::Crossfade { .. } + | Commands::Volume { .. } | Commands::Shuffle = cmd { return; } } - let things: Vec = conn + let _things: Vec = conn .queue() .unwrap() .iter() .map(|x| x.place.unwrap().pos.to_string()) .collect(); - println!("{things:?}"); + // println!("{things:?}"); println!("{}", conn.get_status(cli.verbose)); } diff --git a/src/noise/commands.rs b/src/noise/commands.rs index c77eff9..d6e4fa8 100644 --- a/src/noise/commands.rs +++ b/src/noise/commands.rs @@ -21,7 +21,6 @@ pub trait Noise { fn shuf(&mut self); fn get_status(&mut self, verbose: bool) -> String; fn list_queue(&mut self, file: bool, _verbose: bool); - // fn get_art(&mut self); } impl Noise for Client { @@ -80,9 +79,8 @@ impl Noise for Client { } fn munch(&mut self) { - // let current_song = self.currentsong().unwrap().unwrap().place.unwrap(); - // self.delete(current_song).unwrap(); - todo!("Not net implemented") + let current_song = self.currentsong().unwrap().unwrap().place.unwrap(); + self.delete(current_song.pos).unwrap(); } fn length(&mut self) { @@ -186,11 +184,6 @@ impl Noise for Client { output.join("\n") } - - // fn get_art(&mut self) { - // let current_song = self.currentsong().unwrap().unwrap().file; - // self.albumart(¤t_song).unwrap(); - // } } fn format_song(song: Song) -> String {