0.1.86 upd

This commit is contained in:
Michael Wain 2025-02-21 21:16:51 +03:00
parent c53b8d3ac0
commit e22b838b8c
3 changed files with 5 additions and 5 deletions

2
Cargo.lock generated
View File

@ -90,7 +90,7 @@ checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
[[package]] [[package]]
name = "itunesdb" name = "itunesdb"
version = "0.1.84" version = "0.1.86"
dependencies = [ dependencies = [
"bincode", "bincode",
"env_logger", "env_logger",

View File

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

View File

@ -236,7 +236,7 @@ pub mod aobjects {
fn get_last_cor_id(&mut self) -> u32{ fn get_last_cor_id(&mut self) -> u32{
let files = self.find_dataset(3); let files = self.find_dataset(3);
let image_files = &mut files.child; let image_files = &mut files.child;
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(1027)
} }
pub fn add_images(&mut self, small_image_path: &str, large_image_path: &str, song_dbid: u64) -> u32 { pub fn add_images(&mut self, small_image_path: &str, large_image_path: &str, song_dbid: u64) -> u32 {
@ -285,7 +285,7 @@ pub mod aobjects {
unk2: 0, unk2: 0,
}, },
str: Some( str: Some(
[":F", &last_cor_id.to_string(), "_1.ithmb"].concat(), [":F", &(last_cor_id + 1).to_string(), "_1.ithmb"].concat(),
), ),
} }
), ),
@ -322,7 +322,7 @@ pub mod aobjects {
unk2: 0, unk2: 0,
}, },
str: Some( str: Some(
[":F", &last_cor_id.to_string(), "_1.ithmb"].concat(), [":F", &(last_cor_id + 2).to_string(), "_1.ithmb"].concat(),
), ),
} }
), ),