0.1.33 upd
This commit is contained in:
parent
50c6194a79
commit
633d55695e
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "itunesdb"
|
name = "itunesdb"
|
||||||
version = "0.1.32"
|
version = "0.1.33"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["alterwain"]
|
authors = ["alterwain"]
|
||||||
|
|
||||||
|
@ -55,7 +55,8 @@ pub mod deserializer {
|
|||||||
let ds: LocationTag = bincode::deserialize(&data[i..i + u]).unwrap();
|
let ds: LocationTag = bincode::deserialize(&data[i..i + u]).unwrap();
|
||||||
let images = &mut adb.find_dataset(last_type).child;
|
let images = &mut adb.find_dataset(last_type).child;
|
||||||
let mut str = None;
|
let mut str = None;
|
||||||
if ds.tag_type == 3 {
|
match ds.tag_type {
|
||||||
|
3 => {
|
||||||
let mut bytes = Vec::new();
|
let mut bytes = Vec::new();
|
||||||
let str_end = u32::from_le_bytes(data[i+12..i+16].try_into().unwrap()) as usize;
|
let str_end = u32::from_le_bytes(data[i+12..i+16].try_into().unwrap()) as usize;
|
||||||
let mut h = i+24;
|
let mut h = i+24;
|
||||||
@ -67,9 +68,14 @@ pub mod deserializer {
|
|||||||
let g = String::from_utf16(&bytes).unwrap();
|
let g = String::from_utf16(&bytes).unwrap();
|
||||||
info!("str: {}", g);
|
info!("str: {}", g);
|
||||||
str = Some(g);
|
str = Some(g);
|
||||||
}
|
|
||||||
images.last_mut().unwrap().args.push(ALocationTag { data: ds, str, child: None });
|
images.last_mut().unwrap().args.push(ALocationTag { data: ds, str, child: None });
|
||||||
},
|
},
|
||||||
|
2 => {
|
||||||
|
images.last_mut().unwrap().args.push(ALocationTag { data: ds, str, child: None });
|
||||||
|
},
|
||||||
|
_ => { u = usize::try_from(header.children_count).unwrap() - 12; }
|
||||||
|
}
|
||||||
|
},
|
||||||
ChunkType::ImageName => {
|
ChunkType::ImageName => {
|
||||||
info!("ImageName tag");
|
info!("ImageName tag");
|
||||||
u = usize::try_from(header.end_of_chunk).unwrap() - 12;
|
u = usize::try_from(header.end_of_chunk).unwrap() - 12;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user