Skip to content

Commit 98fe567

Browse files
committed
fix(scanner): add title aliases for GTAV Enhanced, TLOU Part II, and Walking Dead Definitive
1 parent f754ac8 commit 98fe567

1 file changed

Lines changed: 22 additions & 15 deletions

File tree

‎src/scanner.go‎

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -538,10 +538,15 @@ func resolveAppIDByName(rawTitle string) (appID, iconURL, protonTier string) {
538538
}
539539
}
540540

541-
// Fallback for notable delisted Steam games
541+
// Fallback for notable delisted Steam games or title aliases
542542
delistedGames := map[string]string{
543-
"rocket league": "252950",
544-
"deadpool": "224060",
543+
"rocket league": "252950",
544+
"deadpool": "224060",
545+
"gtav enhanced": "271590",
546+
"gta v enhanced": "271590",
547+
"the walking dead definitive series": "1449690",
548+
"the last of us part ii": "2531310",
549+
"the last of us part 2": "2531310",
545550
}
546551
if did, ok := delistedGames[strings.ToLower(cleanTitle)]; ok {
547552
return did, getSteamIconURL(did), fetchProtonDBTier(did)
@@ -948,18 +953,20 @@ func expandGamingAcronyms(title string) string {
948953
tLow := strings.ToLower(strings.TrimSpace(title))
949954
noSpaces := strings.ReplaceAll(tLow, " ", "")
950955
acronymMap := map[string]string{
951-
"gtav": "Grand Theft Auto V",
952-
"gta v": "Grand Theft Auto V",
953-
"gta5": "Grand Theft Auto 5",
954-
"gta 5": "Grand Theft Auto 5",
955-
"gtaiv": "Grand Theft Auto IV",
956-
"gta iv": "Grand Theft Auto IV",
957-
"gta4": "Grand Theft Auto 4",
958-
"gta 4": "Grand Theft Auto 4",
959-
"gta": "Grand Theft Auto",
960-
"tlou2": "The Last of Us Part II",
961-
"tlou 2": "The Last of Us Part II",
962-
"tlou": "The Last of Us",
956+
"gtav": "Grand Theft Auto V",
957+
"gta v": "Grand Theft Auto V",
958+
"gtav enhanced": "Grand Theft Auto V",
959+
"gta v enhanced": "Grand Theft Auto V",
960+
"gta5": "Grand Theft Auto 5",
961+
"gta 5": "Grand Theft Auto 5",
962+
"gtaiv": "Grand Theft Auto IV",
963+
"gta iv": "Grand Theft Auto IV",
964+
"gta4": "Grand Theft Auto 4",
965+
"gta 4": "Grand Theft Auto 4",
966+
"gta": "Grand Theft Auto",
967+
"tlou2": "The Last of Us Part II",
968+
"tlou 2": "The Last of Us Part II",
969+
"tlou": "The Last of Us",
963970
"gow3": "God of War III",
964971
"gow 3": "God of War III",
965972
"gow": "God of War",

0 commit comments

Comments
 (0)