Lacro59 / playnite-systemchecker-plugin

This plugin checks if you have the minimum and required configuration in Playnite.
https://playnite.link
MIT License
23 stars 2 forks source link

[BUG] Refresh Data with source set to "Steam" fails #44

Open sunsetHue opened 1 month ago

sunsetHue commented 1 month ago

Bug Description

Attempting to use the SystemChecker refresh data when the selected game has the source field set to "Steam" fails and throws an error.

To Reproduce

  1. Add new game
  2. Set source field to "Steam"
  3. Refresh data with SystemChecker
  4. Fails with error

Extensions log

31-05 00:13:41.074|INFO |SystemChecker#PluginDatabaseObject`4:Try find with PCGamingWikiRequierements for Project Zomboid
31-05 00:13:41.082|ERROR|SystemChecker#Common:Error on GetWeb()|G:\GitHub\Lacro59\playnite-systemchecker-plugin\source\Services\SystemCheckerDatabase.cs|105
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at SystemChecker.Clients.PCGamingWikiRequierements.GetRequirements(Game game) in G:\GitHub\Lacro59\playnite-systemchecker-plugin\source\Clients\PCGamingWikiRequierements.cs:line 61
   at SystemChecker.Services.SystemCheckerDatabase.GetWeb(Guid Id) in G:\GitHub\Lacro59\playnite-systemchecker-plugin\source\Services\SystemCheckerDatabase.cs:line 105