Merge pull request #677 from timoreo22/fix-modrinth-link
Fix modrinth search filters
This commit is contained in:
commit
d7fad4bd04
@ -68,7 +68,7 @@ class ModAPI {
|
|||||||
{
|
{
|
||||||
QString s;
|
QString s;
|
||||||
for(auto& ver : mcVersions){
|
for(auto& ver : mcVersions){
|
||||||
s += QString("%1,").arg(ver.toString());
|
s += QString("\"%1\",").arg(ver.toString());
|
||||||
}
|
}
|
||||||
s.remove(s.length() - 1, 1); //remove last comma
|
s.remove(s.length() - 1, 1); //remove last comma
|
||||||
return s;
|
return s;
|
||||||
|
@ -79,11 +79,11 @@ class ModrinthAPI : public NetworkModAPI {
|
|||||||
{
|
{
|
||||||
return QString(BuildConfig.MODRINTH_PROD_URL +
|
return QString(BuildConfig.MODRINTH_PROD_URL +
|
||||||
"/project/%1/version?"
|
"/project/%1/version?"
|
||||||
"game_versions=[%2]"
|
"game_versions=[%2]&"
|
||||||
"loaders=[\"%3\"]")
|
"loaders=[\"%3\"]")
|
||||||
.arg(args.addonId)
|
.arg(args.addonId,
|
||||||
.arg(getGameVersionsString(args.mcVersions))
|
getGameVersionsString(args.mcVersions),
|
||||||
.arg(getModLoaderStrings(args.loaders).join("\",\""));
|
getModLoaderStrings(args.loaders).join("\",\""));
|
||||||
};
|
};
|
||||||
|
|
||||||
auto getGameVersionsArray(std::list<Version> mcVersions) const -> QString
|
auto getGameVersionsArray(std::list<Version> mcVersions) const -> QString
|
||||||
|
Loading…
Reference in New Issue
Block a user