SteamDatabase / BrowserExtension

💻 SteamDB's extension for Steam websites
https://steamdb.info/extension/
BSD 3-Clause "New" or "Revised" License
762 stars 55 forks source link

Use Store Country for regional package exclusion #101

Closed nhahtdh closed 2 years ago

nhahtdh commented 2 years ago

Currently, the extension is using GeoIP country for regional package exclusion. While this works for most users, when a user is traveling, their GeoIP would not match the Steam Store Country. It's more accurate to use Steam Store Country instead.

xPaw commented 2 years ago

That page does not have access to your store country.

nhahtdh commented 2 years ago

Can't the extension do something about it?

The free package page is supposed to work for logged in user, it should already grab data from https://store.steampowered.com/dynamicstore/userdata/ for DLC detection. Can't it get the country from https://store.steampowered.com/account/ page?

Or perhaps it's a better idea to open an issue on SteamDB site to get store country when a user is logged into SteamDB, which then could be used by the extension to filter the packages?

xPaw commented 2 years ago

Not going to do that.