diff --git a/Cargo.toml b/Cargo.toml index e772528..977f8a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "itunesdb" -version = "0.1.25" +version = "0.1.26" edition = "2021" authors = ["alterwain"] diff --git a/src/artworkdb.rs b/src/artworkdb.rs index dbaba2e..75b8a86 100644 --- a/src/artworkdb.rs +++ b/src/artworkdb.rs @@ -70,8 +70,8 @@ pub mod deserializer { let mut bytes = Vec::new(); let str_end = u32::from_le_bytes(data[i+8..i+12].try_into().unwrap()) as usize; let mut h = i+20; - info!("h: {}, end: {}", h, i+str_end); - while h < i+str_end { + info!("h: {}, end: {}", h, str_end); + while h < i+20+str_end { bytes.push(u16::from_le_bytes(data[h..h+2].try_into().unwrap())); h+=2; }