Lacro59 / playnite-howlongtobeat-plugin

This plugin shows HowLongToBeat data in Playnite.
https://playnite.link
MIT License
110 stars 15 forks source link

[BUG] Doesn't send your current play time up either after playing or doing so manually #70

Closed JourneyOver closed 3 years ago

JourneyOver commented 3 years ago

Pretty much title, running version 1.4.4

Doing it either manually or through means of opening the game and playing a bit and sending it through the popup once you close the game, it doesn't seem to update any data on the hltb website. Checking logs it seems to be sending data for ID's that do not exist.

19-02 09:12:14.136|INFO|GamesEditor:Starting NGU IDLE, 8fe78434-aa46-4743-9a34-807f0aa6133a, 1147690, cb91dfc9-b977-43bf-8e70-55f46e410fab
19-02 09:12:14.136|INFO|GamesEditor:Using library plugin to start the game.
19-02 09:12:14.136|DEBUG|ProcessStarter:Opening URL: steam://rungameid/1147690
19-02 09:12:14.154|DEBUG|ProcessMonitor:Watching dir processes F:\Games\Steam\steamapps\common\NGU IDLE, False, False
19-02 09:12:16.182|INFO|GamesEditor:Started NGU IDLE game.
19-02 09:12:35.872|DEBUG|WindowFactory:Show dialog window Playnite.Windows.ProgressWindowFactory
19-02 09:12:36.426|WARN|HowLongToBeatClient:HowLongToBeat - No SubmitData for 14173370
19-02 09:12:36.426|DEBUG|WindowFactory:Closing window Playnite.Windows.ProgressWindowFactory, False.
19-02 09:12:36.426|INFO|GamesEditor:Game NGU IDLE stopped after 20 seconds.
19-02 09:13:16.310|DEBUG|WindowFactory:Show dialog window Playnite.DesktopApp.Windows.SettingsWindowFactory
19-02 09:13:46.432|DEBUG|WindowFactory:Show dialog window Playnite.Windows.ProgressWindowFactory
19-02 09:13:46.752|WARN|HowLongToBeatClient:HowLongToBeat - No SubmitData for 14173370
19-02 09:13:46.752|DEBUG|WindowFactory:Closing window Playnite.Windows.ProgressWindowFactory, False.
19-02 09:16:26.967|DEBUG|WindowFactory:Show dialog window Playnite.DesktopApp.Windows.GameEditWindowFactory
19-02 09:16:31.030|DEBUG|WindowFactory:Closing window Playnite.DesktopApp.Windows.GameEditWindowFactory, False.
19-02 09:16:42.210|WARN|PlayniteUiHelper:GameActivity - No data for Path of Exile
19-02 09:17:38.036|WARN|PlayniteUiHelper:GameActivity - No data for Sea of Thieves
19-02 09:17:58.573|DEBUG|WindowFactory:Show dialog window Playnite.Windows.ProgressWindowFactory
19-02 09:17:59.068|WARN|HowLongToBeatClient:HowLongToBeat - No SubmitData for 14173388
19-02 09:17:59.068|DEBUG|WindowFactory:Closing window Playnite.Windows.ProgressWindowFactory, False.

the two examples above are both NGU Idle and Sea of Thieves, but it seems to happen for every game I've tried.

JourneyOver commented 3 years ago

Also it looks like the UrlImg is broken, as it's only pulling half the URL:

Example:

"UrlImg":"/games/A_Hat_in_Time_logo.png"

when it should be

"UrlImg":"https://howlongtobeat.com/games/A_Hat_in_Time_logo.png"