Skip to content

Commit

Permalink
thegamedb: ignore common disk ids T0000 and T0000M
Browse files Browse the repository at this point in the history
These are default disk ids and shouldn't be used to identify media
  • Loading branch information
flyinghead committed Apr 8, 2024
1 parent 24db142 commit bf24906
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/rend/boxart/gamesdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ void TheGamesDb::scrape(GameBoxart& item)
return;
fetchPlatforms();

if (!item.uniqueId.empty())
// Ignore default disk ids used by kos and katana
if (!item.uniqueId.empty() && item.uniqueId != "T0000" && item.uniqueId != "T0000M")
{
std::string url = makeUrl("Games/ByGameUniqueID") + "&fields=overview,uids&include=boxart&filter%5Bplatform%5D="
+ std::to_string(dreamcastPlatformId) + "&uid=" + http::urlEncode(item.uniqueId);
Expand Down

0 comments on commit bf24906

Please sign in to comment.