From ece427863b23c06c358edce96cd6e53e441ed94c Mon Sep 17 00:00:00 2001 From: _ <🐱> Date: Fri, 4 Dec 2020 02:55:09 -0700 Subject: [PATCH] Remove debug code accidentally uploaded --- SpotifyKeyDumper/Utils.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/SpotifyKeyDumper/Utils.cpp b/SpotifyKeyDumper/Utils.cpp index 27a7a2d..e18f937 100644 --- a/SpotifyKeyDumper/Utils.cpp +++ b/SpotifyKeyDumper/Utils.cpp @@ -351,13 +351,8 @@ std::string DownloadAudioData(std::string fileId, std::string uri, std::string k // Only try again on podcasts if (uri.length() > 15 && uri.compare(0, 15, "spotify:episode") == 0) { - std::cout << "Podcast key: " << Utils::HexString((BYTE*)&podcastKey, 16) << std::endl; - std::string podcastKeyStr = std::string(podcastKey, 16); - - std::cout << "podcastKeyStr = " << podcastKeyStr << std::endl; - // Try decryption again with podcast key - decAudioData = AttemptDecryption(audioData, podcastKeyStr); + decAudioData = AttemptDecryption(audioData, podcastKey); if (decAudioData.compare(0, 5, "Error") == 0) return "Error: Could not properly decrypt podcast data (try downloading again)!"; @@ -414,11 +409,6 @@ void Utils::DownloadSong(std::string fileId, std::string uri, std::string key, s return; } - std::cout << "fileId = " + fileId << std::endl; - std::cout << "uri = " + uri << std::endl; - std::cout << "key = " + key << std::endl; - std::cout << "keyHex = " + Utils::HexString((BYTE*)&key[0], 16) << std::endl; - if (uri.compare(0, 13, "spotify:track") == 0) { // Not an episode which means no predictable key