GitLab source code fix for removing custom Ogg page

This commit is contained in:
_ 2020-11-17 14:06:27 -07:00
parent 5cec24ba53
commit 1c62192cd8

View File

@ -177,7 +177,7 @@ void Utils::DownloadSong(std::string fileId, std::string trackUri, std::string k
AES_CTR_xcrypt_buffer(&ctx, reinterpret_cast<uint8_t*>(&songStr[0]), songStr.size()); AES_CTR_xcrypt_buffer(&ctx, reinterpret_cast<uint8_t*>(&songStr[0]), songStr.size());
// Remove custom Spotify Ogg page from beginning of file // 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()) if (!trackUri.empty())
{ {