diff --git a/Cargo.lock b/Cargo.lock index 1867c19..9c4ae45 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -90,7 +90,7 @@ checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" [[package]] name = "itunesdb" -version = "0.1.23" +version = "0.1.25" dependencies = [ "bincode", "env_logger", diff --git a/Cargo.toml b/Cargo.toml index d9d3c20..e772528 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "itunesdb" -version = "0.1.24" +version = "0.1.25" edition = "2021" authors = ["alterwain"] diff --git a/src/artworkdb.rs b/src/artworkdb.rs index 921842a..dbaba2e 100644 --- a/src/artworkdb.rs +++ b/src/artworkdb.rs @@ -70,6 +70,7 @@ 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 { bytes.push(u16::from_le_bytes(data[h..h+2].try_into().unwrap())); h+=2; @@ -77,7 +78,7 @@ pub mod deserializer { let g = String::from_utf16(&bytes).unwrap(); info!("str: {}", g); - name.args.push((ds, String::new())); + name.args.push((ds, g)); } } } else {