Remove debug code accidentally uploaded

This commit is contained in:
_ 2020-12-04 02:55:09 -07:00
parent 576afb08f5
commit ece427863b

View File

@ -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