From 5cfc60795eba5e5f47ceb53a4e3a2e90ee2ae9ce Mon Sep 17 00:00:00 2001 From: "alterwain@protonmail.com" Date: Fri, 21 Feb 2025 17:40:54 +0300 Subject: [PATCH] 0.1.76 upd --- Cargo.toml | 2 +- src/artworkdb.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 830e631..98ea7a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "itunesdb" -version = "0.1.75" +version = "0.1.76" edition = "2021" authors = ["alterwain"] diff --git a/src/artworkdb.rs b/src/artworkdb.rs index 842535e..a868297 100644 --- a/src/artworkdb.rs +++ b/src/artworkdb.rs @@ -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); } }