commit
52b8bdc8fa0028bcb875c6a723c6e04deeecbcb8
Author: Sude <lgogdownloader@gmail.com>
Date: Thu Aug 22 18:13:44 2024 +0300
Fix galaxyAPI::getPathFromDownlinkUrl with Fastly CDN urls
Fastly CDN urls don't contain query strings
Gbp-Pq: Name galaxy-urls-1.patch
else
filename_end_pos = downlink_url_unescaped.find_first_of("?");
+ // Downlink doesn't contain "?path=" or "?"
+ // Set end pos to length
+ if (filename_end_pos == std::string::npos)
+ filename_end_pos = downlink_url_unescaped.length();
+
if (downlink_url_unescaped.find("/" + gamename + "/") != std::string::npos)
{
path.assign(downlink_url_unescaped.begin()+downlink_url_unescaped.find("/" + gamename + "/"), downlink_url_unescaped.begin()+filename_end_pos);