0.1.34 upd

This commit is contained in:
Michael Wain 2025-02-16 01:42:09 +03:00
parent 633d55695e
commit 08b90fcb0e
3 changed files with 9 additions and 4 deletions

2
Cargo.lock generated
View File

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

View File

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

View File

@ -39,8 +39,7 @@ pub mod deserializer {
last_type = ds.data_type; last_type = ds.data_type;
adb.children.push(ADataSet { header, data: ds, child: Vec::new()}); adb.children.push(ADataSet { header, data: ds, child: Vec::new()});
}, },
ChunkType::ImageList => { ChunkType::ImageList | ChunkType::AlbumList | ChunkType::FileList => {
info!("ImageList tag");
u = usize::try_from(header.end_of_chunk).unwrap() - 12; u = usize::try_from(header.end_of_chunk).unwrap() - 12;
}, },
ChunkType::ImageItem => { ChunkType::ImageItem => {
@ -139,6 +138,8 @@ pub mod objects {
ArtworkDB, ArtworkDB,
DataSet, DataSet,
ImageList, ImageList,
AlbumList,
FileList,
ImageItem, ImageItem,
LocationTag, LocationTag,
ImageName, ImageName,
@ -154,6 +155,8 @@ pub mod objects {
[0x6D, 0x68, 0x69, 0x69] => ChunkType::ImageItem, [0x6D, 0x68, 0x69, 0x69] => ChunkType::ImageItem,
[0x6D, 0x68, 0x6F, 0x64] => ChunkType::LocationTag, [0x6D, 0x68, 0x6F, 0x64] => ChunkType::LocationTag,
[0x6D, 0x68, 0x6E, 0x69] => ChunkType::ImageName, [0x6D, 0x68, 0x6E, 0x69] => ChunkType::ImageName,
[0x6D, 0x68, 0x6C, 0x61] => ChunkType::AlbumList,
[0x6D, 0x68, 0x6C, 0x66] => ChunkType::FileList,
_ => ChunkType::Unknown, _ => ChunkType::Unknown,
} }
} }
@ -169,6 +172,8 @@ pub mod objects {
ChunkType::ImageItem => [0x6D, 0x68, 0x69, 0x69], ChunkType::ImageItem => [0x6D, 0x68, 0x69, 0x69],
ChunkType::LocationTag => [0x6D, 0x68, 0x6F, 0x64], ChunkType::LocationTag => [0x6D, 0x68, 0x6F, 0x64],
ChunkType::ImageName => [0x6D, 0x68, 0x6E, 0x69], ChunkType::ImageName => [0x6D, 0x68, 0x6E, 0x69],
ChunkType::AlbumList => [0x6D, 0x68, 0x6C, 0x61],
ChunkType::FileList => [0x6D, 0x68, 0x6C, 0x66],
} }
} }
} }