Closed thecjharries closed 4 years ago
I saw the GameKeys error but before I saw this pull request I tried to just delete my user data in ~/.config/humblebundle/ and I seem to have broken it even more. My guess is that the authentication parts continue to work if an old cookie is still valid, but if you have to reauth then it fails due to changes in the Humble Bundle pages. It's only a guess though since I haven't found time to dig any further.
@MestreLion, could you merge this please?
if you have to reauth then it fails due to changes in the Humble Bundle pages
This is #46, -A
still works.
Overview
From some quick investigation, it looks like
gamekeys
is in ascript
tag now that looks like this:I updated the regex to handle this while also preserving the old format (Is that necessary? If not I can update the PR). I did some local testing and was able to make
example.py
work with this change. This should fix #50.Testing
Honestly there's probably a simpler way to test this but I haven't written much code in a month and this was the faster way to get the PR out.
example.py
Create this file, filling in the necessary values:
build.sh
This creates (and runs) the necessary files.
Note that you might have to add
auth
and/orcode
toexample.py
to make things work. You can just run this instead of the entire script after doing that: