claabs / epicgames-freegames-node

Automatically login and find available free games the Epic Games Store. Sends you a prepopulated checkout link so you can complete the checkout after logging in. Supports multiple accounts, login sessions, and scheduled runs.
https://hub.docker.com/r/charlocharlie/epicgames-freegames
MIT License
1.35k stars 92 forks source link

Scripts doesnt see current week free game #7

Closed Andrej730 closed 4 years ago

Andrej730 commented 4 years ago

Current week free game is "For the King" and seems like scripts doesnt see it. Previous week everything worked fine. My account is linked to Russia, so it is possible that my issue is related to #5

Log:

> epicgames-freegames-node@1.0.0 start /usr/app
> node dist/index.js

[2020-04-25 17:18:13.748 +0000] INFO  (24 on d4db033feaf6): Successfully refreshed login
[2020-04-25 17:18:15.057 +0000] INFO  (24 on d4db033feaf6): Available free games
    availableGames: []
[2020-04-25 17:18:15.059 +0000] INFO  (24 on d4db033feaf6): Unpurchased free games
    purchasableGames: []
claabs commented 4 years ago

I put a fix in a couple days ago as Epic changed the GraphQL query. I just want to make sure you're on the latest release.

If you are on the latest, I'd imagine the issue is region based. I can work on parameterizing the region.

Andrej730 commented 4 years ago

Removed previous docker image I had and downloaded the latest one - now everything works. Guess it confirms that currently there is no region based issues with the script.

I was using the following command to run script: docker run charlocharlie/epicgames-freegames:latest Thought it makes sure that it is using the latest image from docker hub. Apparently not. Any idea how to make sure it will check for image updates?

claabs commented 4 years ago

For docker run, it looks like you can do --pull=always to pull each time. Another option is to use a container manager, such as Portainer. I imagine it would prompt you when an update is available.

The region stuff is good news. I have a feeling it only applies when games are restricted to certain regions. If we start getting free offers for games that are restricted in other regions, I think we'd start seeing errors on checkout.

Andrej730 commented 4 years ago

Thank you once again, good job on the script.