Sort by title when using "--game free"

This commit is contained in:
Sude 2013-11-17 11:01:35 +02:00
parent 35e64bbe1e
commit 1cd79a2292

View File

@ -1303,7 +1303,7 @@ std::vector< std::pair<std::string,std::string> > Downloader::getFreeGames()
Json::Value root;
Json::Reader *jsonparser = new Json::Reader;
std::vector< std::pair<std::string,std::string> > games;
std::string json = this->getResponse("https://secure.gog.com/games/ajax?a=search&f={\"price\":[\"free\"]}&p=1&t=all");
std::string json = this->getResponse("https://secure.gog.com/games/ajax?a=search&f={\"price\":[\"free\"],\"sort\":\"title\"}&p=1&t=all");
// Parse JSON
if (!jsonparser->parse(json, root))