0.1.80 upd
This commit is contained in:
parent
f0f4ed1210
commit
a667e7ecb8
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "itunesdb"
|
name = "itunesdb"
|
||||||
version = "0.1.79"
|
version = "0.1.80"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["alterwain"]
|
authors = ["alterwain"]
|
||||||
|
|
||||||
|
@ -239,7 +239,7 @@ pub mod aobjects {
|
|||||||
image_files.iter().map(|p| p.file.as_ref().unwrap().correlation_id).max().unwrap_or(1028)
|
image_files.iter().map(|p| p.file.as_ref().unwrap().correlation_id).max().unwrap_or(1028)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn add_images(&mut self, small_image_path: &str, large_image_path: &str, song_dbid: u64) {
|
pub fn add_images(&mut self, small_image_path: &str, large_image_path: &str, song_dbid: u64) -> u32 {
|
||||||
let last_cor_id = self.get_last_cor_id();
|
let last_cor_id = self.get_last_cor_id();
|
||||||
let ds = self.find_dataset(1);
|
let ds = self.find_dataset(1);
|
||||||
let image_items = &mut ds.child;
|
let image_items = &mut ds.child;
|
||||||
@ -363,9 +363,9 @@ pub mod aobjects {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
let next_mhii = image_items.last().map_or(101, |p| p.data.as_ref().unwrap().id + 1);
|
||||||
let d = self.data.as_mut().unwrap();
|
self.data.as_mut().unwrap().next_id_for_mhii = next_mhii;
|
||||||
d.next_id_for_mhii = last_cor_id + 3;
|
next_mhii
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user