Don't try to get extras from account page if --no-extras is used

This commit is contained in:
Sude 2013-10-13 12:53:44 +03:00
parent 08b0e10429
commit 34236e3774

View File

@ -218,7 +218,7 @@ int Downloader::getGameDetails()
game = gogAPI->getGameDetails(gameNamesIds[i].first, config.iInstallerType, config.iInstallerLanguage);
if (!gogAPI->getError())
{
if (game.extras.empty())
if (game.extras.empty() && !config.bNoExtras)
{
game.extras = this->getExtras(gameNamesIds[i].first, gameNamesIds[i].second);
}