0.1.76 upd

This commit is contained in:
Michael Wain 2025-02-21 17:40:54 +03:00
parent a825c953eb
commit 5cfc60795e
2 changed files with 6 additions and 2 deletions

View File

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

View File

@ -218,6 +218,7 @@ pub mod serializer {
}
pub mod aobjects {
use log::info;
use crate::artworkdb::objects::{ChunkHeader, DataSet, Database, ImageFile, ImageItem, ImageName, LocationTag};
#[derive(Debug, serde::Serialize)]
@ -239,6 +240,7 @@ pub mod aobjects {
}
pub fn add_images(&mut self, small_image_path: &str, large_image_path: &str, song_dbid: u64) {
info!("Source: {:#?}", self);
let last_cor_id = self.get_last_cor_id();
let ds = self.find_dataset(1);
let image_items = &mut ds.child;
@ -303,7 +305,7 @@ pub mod aobjects {
iname: ImageName {
number_of_children: 1,
correlation_id: last_cor_id + 2,
ithmb_offset: 80000,
ithmb_offset: 0,
image_size: 80000,
vertical_padding: 0,
horizontal_padding: 0,
@ -365,6 +367,8 @@ pub mod aobjects {
let d = self.data.as_mut().unwrap();
d.next_id_for_mhii = last_cor_id + 3;
info!("End up with: {:#?}", self);
}
}