From 0730c853fc6ab27f791e29ecd70067904c50a762 Mon Sep 17 00:00:00 2001 From: "alterwain@protonmail.com" Date: Mon, 17 Feb 2025 20:25:52 +0300 Subject: [PATCH] 0.1.53 upd --- Cargo.toml | 2 +- src/xobjects.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 01d7bae..dcb3b44 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "itunesdb" -version = "0.1.52" +version = "0.1.53" edition = "2021" authors = ["alterwain"] diff --git a/src/xobjects.rs b/src/xobjects.rs index 3d1e476..5bb4bd9 100644 --- a/src/xobjects.rs +++ b/src/xobjects.rs @@ -252,7 +252,9 @@ impl XDatabase { let playlist = playlist.unwrap(); playlist.data.playlist_item_count += 1; let pl_item = PlaylistItem::new(track.data.unique_id, rand::random()); - playlist.elems.push((pl_item, vec![RawArgument(vec![ 0x6D, 0x68, 0x6F, 0x64, 0x18, 0x0, 0x0, 0x0, 0x88, 0x02, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, 0x00, 0x03, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00])])); + let mut raw: Vec = vec![ 109,104,111,100,24,0,0,0,44,0,0,0,100,0,0,0,0,0,0,0,0,0,0,0,147,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ]; + raw[24] = pl_item.group_id as u8; + playlist.elems.push((pl_item, vec![RawArgument(raw)])); } }