From 4d646266faaf095ec58bd98e02255beea662ce4f Mon Sep 17 00:00:00 2001 From: Nico Middendorf Date: Sun, 17 Dec 2023 01:00:43 +0100 Subject: [PATCH] Fix memory offset for track id on 64 bit (#9) * add offset for 64 Bit version of 1.2.26.1187.g36b715a1 * 1.1.17 --- build.gradle | 2 +- .../spotifyapi/platform/windows/api/spotify/SpotifyProcess.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index ee6a0ae..2ca5340 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group 'de.labystudio' -version '1.1.16' +version '1.1.17' compileJava { sourceCompatibility = '1.8' diff --git a/src/main/java/de/labystudio/spotifyapi/platform/windows/api/spotify/SpotifyProcess.java b/src/main/java/de/labystudio/spotifyapi/platform/windows/api/spotify/SpotifyProcess.java index de49cdd..fe6d281 100644 --- a/src/main/java/de/labystudio/spotifyapi/platform/windows/api/spotify/SpotifyProcess.java +++ b/src/main/java/de/labystudio/spotifyapi/platform/windows/api/spotify/SpotifyProcess.java @@ -18,6 +18,7 @@ public class SpotifyProcess extends WinProcess { // Spotify track id private static final String PREFIX_SPOTIFY_TRACK = "spotify:track:"; private static final long[] OFFSETS_TRACK_ID = { + 0x154A60, // 64-Bit (1.2.26.1187.g36b715a1) 0x14FA30, // 64-Bit (1.2.21.1104.g42cf0a50) 0x106198, // 32-Bit (1.2.21.1104.g42cf0a50) 0x14C9F0, // 64-Bit (Old)