darklinkpower / PlayniteExtensionsCollection

Collection of extensions made for Playnite.
MIT License
298 stars 28 forks source link

Save File View (Feature): fuzzy logic for retrieving games from PCGamingWiki #31

Open bettafo opened 3 years ago

bettafo commented 3 years ago

Save File View is a relatively new and pretty useful extension. Many Playnite users may want to add access to the save and config folders for as many games as possible in their library. At the moment the extension seems to use a pretty strict logic to retrieve games data from PCGAmingWiki. This is less than ideal and even more so when using the Game Directories > Refresh Directories from PCGamingWiki on bulk games selections (the extension states how many games were not retrieve but not which, so one has to check games and their titles one by one).

Steps to reproduce: 1 Open https://www.pcgamingwiki.com/wiki/UFO:_Extraterrestrials and copy the game title ( UFO: Extraterrestrials ) 2 In Playnite manually create a new game entry with the copied title but delete the ":" from the title (Add Game > Manually... then paste the title into the Name field, delete ":" from the title so that it reads "UFO Extraterrestrials" instead of "UFO: Extraterrestrials", then save) 4 Right-click on the new UFO Extraterrestrials game entry and choose Game Directories > Refresh Directories from PCGamingWiki 5 The extension cannot obtain the data because of the missing ":"

It would be great if the exension could use some fuzzy logic to retrieve games data and present choices to the user if no exact match is found from PCGamingWiki. And even greater if that could also be implemented to updating bulk games selections. One example of extension coming to my mind that does that well is HowLongToBeat. So maybe all the code does not have to be written from scratch....

Cheers

veksha commented 7 months ago

for "Gibbous - A Cthulhu Adventure" i get error:

image

i think it is because name has " - " (space hyphen space)