0.1.66 upd

This commit is contained in:
Michael Wain 2025-02-20 23:47:22 +03:00
parent 4f0606167f
commit 4d44f8b3e5
2 changed files with 11 additions and 1 deletions

View File

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

View File

@ -254,6 +254,16 @@ impl XDatabase {
return n + 1;
}
}
if let XSomeList::Playlists(playlists) = &mut self.find_dataset(2).child {
for playlist in playlists {
if playlist.data.is_master_playlist_flag != 0 {
let a = playlist.args.iter().filter(|s| matches!(s, RawArgument(b))).last().unwrap();
if let RawArgument(b) = a {
return u32::from_le_bytes([b[12], b[13], b[14], b[15]]);
}
}
}
}
1
}