Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Filter wishlist to games containing a demo #447

Open
MxtOUT opened this issue Aug 18, 2019 · 8 comments
Open

[Feature Request] Filter wishlist to games containing a demo #447

MxtOUT opened this issue Aug 18, 2019 · 8 comments
Labels
augmentation New feature or request

Comments

@MxtOUT
Copy link
Member

MxtOUT commented Aug 18, 2019

User request from ITAD Steam group

@MxtOUT MxtOUT added the augmentation New feature or request label Aug 18, 2019
@Revadike
Copy link
Contributor

Hmm, I'm curious for the use case. Why does it matter if a game has a demo or not?

@MxtOUT
Copy link
Member Author

MxtOUT commented Aug 18, 2019

I find this very useful indeed.
If you're planning to buy a game (because it's on your wishlist), but do not know which, you can apply this filter and go through some demos to try them out

@Samkiud
Copy link

Samkiud commented Aug 19, 2019

Thanks for the consideration. If this feature gets implemented, that'd be fantastic.

@Samkiud
Copy link

Samkiud commented Sep 19, 2019

Any chance we get to see this feature in the near future? Any news?

@Revadike
Copy link
Contributor

Revadike commented Nov 3, 2019

To implement this, we either have to scrape each wishlist game's store page, or use some sort of database. From experience I can tell backend stuff takes ages to get implemented here for Augmented Steam.
I think you'll have better luck requesting this feature for the SteamDB extension. They already have a great database that is perfect for this.

@candela97
Copy link
Collaborator

This endpoint can be used to get the demo appid for a given app: https://store.steampowered.com/saleaction/ajaxgetdemoevents?appids[]=

So we can run something like this on wishlists to get a list of apps with demos:

const params = g_rgWishlistData.map(({appid}) => `appids[]=${appid}`).join("&");
await fetch(`https://store.steampowered.com/saleaction/ajaxgetdemoevents?${params}`)
    .then(data => data.json())
    .then(({info}) => info.filter(val => !!val.demo_appid).map(({appid}) => appid));

The only problem I can think of is the query parameter length, which gets longer the more items on the wishlist. I tried with close to 400 items without problems, but what about people with thousands of items? I assume browsers have a limit on the length of query parameters.

@prrrszalony
Copy link

Hi, I don't know if is cool to drop links to other repositories but there is an extension, that kinda works and shows demos https://github.com/bar-bar-bar-bar-bar/demos-in-my-steam-wishlist but its only for chrome. Maybe it will guide someone smart on how to add this. Cheers!

@candela97
Copy link
Collaborator

candela97 commented Sep 9, 2023

Hi, I don't know if is cool to drop links to other repositories but there is an extension, that kinda works and shows demos https://github.com/bar-bar-bar-bar-bar/demos-in-my-steam-wishlist but its only for chrome. Maybe it will guide someone smart on how to add this. Cheers!

Interesting project! Seems like they did it similar to what I brought up here #1614 (comment), problem is the list needs to be frequently updated since demos come and go pretty fast. My solution linked above gets the data directly from Steam, which is much more reliable but unfortunately might not be suitable for large-scale depolyment...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
augmentation New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants