From 1c62192cd8ca73f33c0c4c68a7a6a2a160e0bded Mon Sep 17 00:00:00 2001 From: _ <🐱> Date: Tue, 17 Nov 2020 14:06:27 -0700 Subject: [PATCH] GitLab source code fix for removing custom Ogg page --- SpotifyKeyDumper/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpotifyKeyDumper/Utils.cpp b/SpotifyKeyDumper/Utils.cpp index 966e65b..3d9ec58 100644 --- a/SpotifyKeyDumper/Utils.cpp +++ b/SpotifyKeyDumper/Utils.cpp @@ -177,7 +177,7 @@ void Utils::DownloadSong(std::string fileId, std::string trackUri, std::string k AES_CTR_xcrypt_buffer(&ctx, reinterpret_cast(&songStr[0]), songStr.size()); // Remove custom Spotify Ogg page from beginning of file - songStr = songStr.substr(songStr.find("OggS") + 4); + songStr = songStr.substr(songStr.find("\xFF\xFF\xFF\xFFOggS") + 4); if (!trackUri.empty()) {