darklinkpower / PlayniteExtensionsCollection

Collection of extensions made for Playnite.
MIT License
326 stars 29 forks source link

[Steam News and Players Viewer] Player count not loading for unlisted/private games. #568

Open robbely opened 3 months ago

robbely commented 3 months ago

Extension name

Steam News and Players Viewer

Bug Description

I'm not sure if this is a bug as I don't know how the extension works. Some games are in SteamDB (where it would appear the player count info comes from) but hidden in Steam. A prominent example is the Deadlock play test which would be useful to follow player count (although without a steam page, no news info is expected). Is there a way to get the extension to still show player count for these games by referencing the steamdb page?

To Reproduce

Add an steam unlisted game that has presence in steamdb, check for player count

Logs

n/a

Screenshots

No response

darklinkpower commented 2 months ago

Currently the extension uses the Steam web api to obtain the current number of players. For unreleased/private games like Deadlock this API doesn't return this data: https://api.steampowered.com/ISteamUserStats/GetNumberOfCurrentPlayers/v1/?appid=1422450

image

For normal games the data is correctly returned: https://api.steampowered.com/ISteamUserStats/GetNumberOfCurrentPlayers/v1/?appid=588650

image


To fix this, it would be needed to investigate how SteamDB obtains the data and if it's feasible to rework the extension to use that instead.