0.1.17 upd

This commit is contained in:
Michael Wain 2025-02-15 04:00:48 +03:00
parent 48cd7b20c7
commit 1d40207b7b
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "itunesdb" name = "itunesdb"
version = "0.1.16" version = "0.1.17"
edition = "2021" edition = "2021"
authors = ["alterwain"] authors = ["alterwain"]

View File

@ -159,9 +159,10 @@ impl XTrackItem {
self.args.iter().find(|t| t.arg_type == id).map_or(String::new(), |t| t.val.clone()) self.args.iter().find(|t| t.arg_type == id).map_or(String::new(), |t| t.val.clone())
} }
fn update_arg(&mut self, id: u32, val: String) { pub fn update_arg(&mut self, id: u32, val: String) {
self.args.retain(|t| t.arg_type != id); self.args.retain(|t| t.arg_type != id);
self.args.push(XArgument { arg_type: id, val}); self.args.push(XArgument { arg_type: id, val});
self.data.number_of_strings = self.args.len() as u32;
} }
} }