From 1d40207b7bb4d658b306e7e7cf7c5f5238bb9761 Mon Sep 17 00:00:00 2001 From: "alterwain@protonmail.com" Date: Sat, 15 Feb 2025 04:00:48 +0300 Subject: [PATCH] 0.1.17 upd --- Cargo.toml | 2 +- src/xobjects.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2336def..84e2c74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "itunesdb" -version = "0.1.16" +version = "0.1.17" edition = "2021" authors = ["alterwain"] diff --git a/src/xobjects.rs b/src/xobjects.rs index a221777..bc709b9 100644 --- a/src/xobjects.rs +++ b/src/xobjects.rs @@ -159,9 +159,10 @@ impl XTrackItem { 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.push(XArgument { arg_type: id, val}); + self.data.number_of_strings = self.args.len() as u32; } }