mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Galaxy: Workaround for file name issue
This commit is contained in:
parent
3f8a8d6b68
commit
8191b9d0a3
@ -410,6 +410,16 @@ std::vector<gameFile> galaxyAPI::fileJsonNodeToGameFileVector(const std::string&
|
||||
path = "/" + gamename + "/" + path;
|
||||
}
|
||||
|
||||
// Workaround for filename issue caused by different (currently unknown) url formatting scheme
|
||||
// https://github.com/Sude-/lgogdownloader/issues/126
|
||||
if (path.find("?") != std::string::npos)
|
||||
{
|
||||
if (path.find_last_of("?") > path.find_last_of("/"))
|
||||
{
|
||||
path.assign(path.begin(), path.begin()+path.find_last_of("?"));
|
||||
}
|
||||
}
|
||||
|
||||
gameFile gf;
|
||||
gf.gamename = gamename;
|
||||
gf.type = type;
|
||||
|
Loading…
Reference in New Issue
Block a user