0.1.81 upd

This commit is contained in:
Michael Wain 2025-02-21 18:28:33 +03:00
parent a667e7ecb8
commit 997c9a54fe
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -243,9 +243,10 @@ pub mod aobjects {
let last_cor_id = self.get_last_cor_id();
let ds = self.find_dataset(1);
let image_items = &mut ds.child;
let new_id = image_items.last().map_or(100, |p| p.data.as_ref().unwrap().id + 1);
let image_item = crate::artworkdb::objects::ImageItem {
number_of_children: 3,
id: image_items.last().map_or(100, |p| p.data.as_ref().unwrap().id + 1),
id: new_id,
song_dbid,
unknown4: 0,
rating: 0,
@ -363,9 +364,8 @@ pub mod aobjects {
),
},
]);
let next_mhii = image_items.last().map_or(101, |p| p.data.as_ref().unwrap().id + 1);
self.data.as_mut().unwrap().next_id_for_mhii = next_mhii;
next_mhii
self.data.as_mut().unwrap().next_id_for_mhii = new_id + 1;
new_id + 1
}
}