0.1.76 upd
This commit is contained in:
parent
a825c953eb
commit
5cfc60795e
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "itunesdb"
|
name = "itunesdb"
|
||||||
version = "0.1.75"
|
version = "0.1.76"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["alterwain"]
|
authors = ["alterwain"]
|
||||||
|
|
||||||
|
@ -218,6 +218,7 @@ pub mod serializer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub mod aobjects {
|
pub mod aobjects {
|
||||||
|
use log::info;
|
||||||
use crate::artworkdb::objects::{ChunkHeader, DataSet, Database, ImageFile, ImageItem, ImageName, LocationTag};
|
use crate::artworkdb::objects::{ChunkHeader, DataSet, Database, ImageFile, ImageItem, ImageName, LocationTag};
|
||||||
|
|
||||||
#[derive(Debug, serde::Serialize)]
|
#[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) {
|
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 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;
|
||||||
@ -303,7 +305,7 @@ pub mod aobjects {
|
|||||||
iname: ImageName {
|
iname: ImageName {
|
||||||
number_of_children: 1,
|
number_of_children: 1,
|
||||||
correlation_id: last_cor_id + 2,
|
correlation_id: last_cor_id + 2,
|
||||||
ithmb_offset: 80000,
|
ithmb_offset: 0,
|
||||||
image_size: 80000,
|
image_size: 80000,
|
||||||
vertical_padding: 0,
|
vertical_padding: 0,
|
||||||
horizontal_padding: 0,
|
horizontal_padding: 0,
|
||||||
@ -365,6 +367,8 @@ pub mod aobjects {
|
|||||||
|
|
||||||
let d = self.data.as_mut().unwrap();
|
let d = self.data.as_mut().unwrap();
|
||||||
d.next_id_for_mhii = last_cor_id + 3;
|
d.next_id_for_mhii = last_cor_id + 3;
|
||||||
|
|
||||||
|
info!("End up with: {:#?}", self);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user