Skip to content

Implement store purchase and download feature - #782

Closed
alessio-attilio wants to merge 2 commits into
RareDevs:mainfrom
alessio-attilio:feature/store-purchase-download
Closed

Implement store purchase and download feature#782
alessio-attilio wants to merge 2 commits into
RareDevs:mainfrom
alessio-attilio:feature/store-purchase-download

Conversation

@alessio-attilio

@alessio-attilio alessio-attilio commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Adds a store purchase and download flow to the Store tab with browse/search filtering, wishlist integration and free-game claiming. Fixes the store API by querying the launcher store GraphQL host and sending the EpicGamesLauncher User-Agent so requests authenticate correctly. Response parsing now bails out on GraphQL errors instead of crashing on None.

@alessio-attilio
alessio-attilio marked this pull request as draft August 20, 2026 20:23
@alessio-attilio alessio-attilio changed the title Fix store API GraphQL host and auth Implement store purchase and download feature Aug 20, 2026
@loathingKernel

Copy link
Copy Markdown
Contributor

For the millionth time, please DO NOT touch things that do not need to change. You do not need to remove comments, you do not need to refactor things, you do not need to reformat things. If for whatever reason you want to refactor them do it in separate commits.

Fix the thing you intend to fix, leave the rest as is OR make them separate commits. This is not the first time I am asking this from you. If you can't follow it, please don't contribute.

@loathingKernel

loathingKernel commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Yeah, I am not merging slop

image

If you can write this yourself, you can split it into separate commits properly. I am not going to waste my time reviewing a 1k single-commit changeset.

Comment on lines +287 to +297
self.logger.error('Remove from wishlist request failed: %s', error)
callback(success)
return
if (
response.data is None
or response.data.wishlist is None
or response.data.wishlist.removeFromWishlist is None
):
self.logger.error('Remove from wishlist request returned no data')
callback(success)
return

@loathingKernel loathingKernel Aug 20, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, this change, and all the others similar to it, was added because the exception is explicitly re-raised when running with debug enabled? So in a way make the debugging things not work?

Comment thread rare/utils/qrequests.py
Comment on lines +106 to +109
if not isinstance(reply, QNetworkReply):
self.logger.error('Network request did not return a QNetworkReply: %r', reply)
self._fail(item)
return

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not python requests, this is not how QNetworkManager.get() works. There is no way QNetworkAccessManager won't return a QNetworkReply.

What is the point of this change? What does it even fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants