Skip to content

Commit

Permalink
scraper: teach ScreenScraper to use the user input
Browse files Browse the repository at this point in the history
Fixed the ScreenScraper search by user input, since it only by searched by filename and ignored the user input for the game name.
  • Loading branch information
cmitu committed Jan 31, 2022
1 parent 092ec63 commit d391739
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion es-app/src/scrapers/ScreenScraper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ void screenscraper_generate_scraper_requests(const ScraperSearchParams& params,

ScreenScraperRequest::ScreenScraperConfig ssConfig;

path = ssConfig.getGameSearchUrl(params.game->getFileName());
// Check if the user has overridden the file name
path = ssConfig.getGameSearchUrl(params.nameOverride.empty() ? params.game->getFileName() : params.nameOverride);

auto& platforms = params.system->getPlatformIds();
std::vector<unsigned short> p_ids;

Expand Down

0 comments on commit d391739

Please sign in to comment.