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

Please support 'universal' codes #45

Closed
flammable opened this issue Aug 6, 2022 · 7 comments
Closed

Please support 'universal' codes #45

flammable opened this issue Aug 6, 2022 · 7 comments

Comments

@flammable
Copy link

Hello! Thanks for this app, and the Docker image. :)

Would it be possible to add another platform, universal? It looks like the new Tiny Tina's Wonderlands keys have been marked as Universal. AutoSHiFt hasn't redeemed any keys for me in the past month, and I think that might be why.

In the database, universal shows in seen_platforms, but when trying to specify SHIFT_PLATFORMS=steam in my Docker env file, I receive usage instructions in the logs:

auto.py: error: argument --platforms: invalid choice: 'universal' (choose from 'steam', 'epic', 'psn', 'xboxlive', 'stadia')
usage: auto.py [-h] [-u USER] [-p PASS] [--golden] [--non-golden] --games
               {bl1,bl2,bl3,blps,ttw,gdfll} [{bl1,bl2,bl3,blps,ttw,gdfll} ...]
               --platforms {steam,epic,psn,xboxlive,stadia}
               [{steam,epic,psn,xboxlive,stadia} ...] [--limit LIMIT]
               [--schedule] [-v]

Thanks again!

@Fabbi
Copy link
Owner

Fabbi commented Aug 8, 2022

universal keys should be redeemed automatically for every game. I'll take a look into this.

@flammable
Copy link
Author

Thanks! If it helps, I see there's a new 'universal' key that AutoSHiFt hasn't yet redeemed for my account:

https://shift.orcicorn.com/shift-code/tbxtt-9h6w9-kc35c-bbtjt-35cj5/

This key was posted on August 11th, and expires on the 18th. The last redemption on Gearbox's website for my account was July 2nd. Here are the most recent logs, since restarting the container tonight:

2022-08-13 21:32:37,939 [DEBUG]    auto:244 - Debug mode on
2022-08-13 21:32:38,748 [INFO]     
================= autoshift by @Fabbi ==================
 Data provided by Orcicorn's SHiFT and VIP Code archive 
         https://shift.orcicorn.com/shift-code/         
========================================================
2022-08-13 21:32:38,758 [INFO]     done. (no new Keys)
2022-08-13 21:32:38,758 [INFO]     You have 0 golden BL2 keys to redeem for STEAM
2022-08-13 21:32:38,759 [INFO]     You have 0 golden BLPS keys to redeem for STEAM
2022-08-13 21:32:38,759 [INFO]     Trying to redeem now.
2022-08-13 21:32:38,759 [INFO]     No more keys left!
2022-08-13 21:32:38,759 [INFO]     Scheduling to run once an hour
2022-08-13 22:37:43,173 [INFO]     Checking for new keys!
2022-08-13 22:37:43,303 [INFO]     done. (no new Keys)
2022-08-13 22:37:43,304 [INFO]     You have 0 golden BL2 keys to redeem for STEAM
2022-08-13 22:37:43,304 [INFO]     You have 0 golden BLPS keys to redeem for STEAM
2022-08-13 22:37:43,304 [INFO]     Trying to redeem now.
2022-08-13 22:37:43,304 [INFO]     No more keys left!

It's totally possible I'm misdiagnosing the problem, too! Please let me know if there's any other data that would be helpful. Thanks for taking a look at this!

@Fabbi Fabbi closed this as completed in 0f22628 Aug 15, 2022
@Fabbi
Copy link
Owner

Fabbi commented Aug 15, 2022

I fixed the issue. Thanks for reporting.

btw: in your last log it seems like you didn't specify ttw as a game you want to redeem keys for.

@flammable
Copy link
Author

Thanks! I should have included my config - here's what I've got in my env file:

TZ=America/New_York
SHIFT_PLATFORMS=steam
SHIFT_USER=(my email address)
SHIFT_PASS=(my password)
SHIFT_GAMES=ttw bl3 blps bl2 bl1
SHIFT_ARGS=--schedule -v

I originally went with the ordering in the README:

SHIFT_GAMES=bl3 blps bl2 bl1 ttw

but I moved ttw to the beginning to troubleshoot.

@flammable
Copy link
Author

Update: I noticed my keys.db file hadn't been modified since August 11th. The code I mentioned earlier was published on August 11th, and is currently active until the 18th:

https://shift.orcicorn.com/shift-code/tbxtt-9h6w9-kc35c-bbtjt-35cj5/

I opened the database in a SQLite editor, and could see that TBXTT-9H6W9-KC35C-BBTJT-35CJ5 was listed in the database already. In the redeemed column, it has a 1. So, I went to the SHiFT website and attempted to redeem the code for Steam...which worked. Was that due to the bug you had fixed?

If so, this is probably safe to ignore, and I'll wait for another code to be posted to see if it's auto-redeemed. Thanks!

@Fabbi
Copy link
Owner

Fabbi commented Aug 16, 2022

yeah there was an error with the data. Could you please remove the .cookies.save from the data folder and either remove all keys from the database that you suspect to be faulty or remove the whole database altogether?

After that everything should be running normal again.

Sorry for the inconvenience.

@flammable
Copy link
Author

No worries! Thanks again for this!

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

No branches or pull requests

2 participants