It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
hyperagathon: Windows? Run it from the command line thingie, if Win still ships with that.
Ok, yes I figured out.
My errors copied from the prompt:

Traceback (most recent call last):
File "the_napping_gamer.py", line 518, in <module>
wait_time = max(min(sleep_time, check_games()), minimum_sleep_value)
File "the_napping_gamer.py", line 452, in check_games
for game_info in extract_game_data(read_from_url(url)):
File "the_napping_gamer.py", line 398, in extract_game_data
local_discount_price, local_full_price = get_price_value(data["product"]["prices"])
File "the_napping_gamer.py", line 372, in get_price_value
values = currency_values[currency_code][str(index)].split(";")KeyError: '3'

avatar
JMich: Question, since I've already filtered what I want and what I don't want, is it possible to modify the script to only check the game's name versus the wishlist.txt, without checking prices etc?
Uh, wouldn't the default 99.99 price still work for that?
Post edited March 21, 2016 by phaolo
avatar
phaolo: Uh, wouldn't the default 99.99 price still work for that?
The crashes seem to be because the script is looking for a country code in the list of prices, and can't find what it's looking for. If you skip the check completely, the countriesGroups and currency_values become irrelevant, so they shouldn't be able to cause the script to crash.
I'm sorry for the crashes. It seems to happen on bundles. They are a bit rare, so I'm still trying to ensure it rolls OK with them.
Thank you for your patience. I hope to upload a new version soon.

avatar
JMich: Question, since I've already filtered what I want and what I don't want, is it possible to modify the script to only check the game's name versus the wishlist.txt, without checking prices etc?
My idea was that in that situation you would set an absurdly high price.
Please note that I am extracting the game's name from the game's URL.
avatar
Gede: I'm sorry for the crashes. It seems to happen on bundles. They are a bit rare, so I'm still trying to ensure it rolls OK with them.
Thus why I also gave the current_deal data, since it wasn't on a bundle. No worries either way.
Thank you for your patience. I hope to upload a new version soon.

avatar
Gede: Please note that I am extracting the game's name from the game's URL.
van, mon, outl, lego, dig are the ones I'm looking for, so it shouldn't be a problem ;)
avatar
JMich: Thus why I also gave the current_deal data, since it wasn't on a bundle. No worries either way.
Yes, I noticed. Quite attentive of you.
I have rewritten the offending code to act in two passes over the data, instead of trying to deal with everything in one, and testing it right now.
avatar
Gede: testing it right now.
Yet another possible bug. While I have the word "Van" in my wishlist.txt, The Vanishing of Ethan Carter did not cause any sounds. Does the case of the words in wishlist.txt matter, or should they be full strings or something?
avatar
JMich: Yet another possible bug. While I have the word "Van" in my wishlist.txt, The Vanishing of Ethan Carter did not cause any sounds. Does the case of the words in wishlist.txt matter, or should they be full strings or something?
It is a case insensitive full string equality test. I wanted to avoid substrings for exactly that reason.
avatar
Gede: It is a case insensitive full string equality test. I wanted to avoid substrings for exactly that reason.
Damn it, substrings would mean a smaller wishlist file for me :P
No worries, and thank you.
avatar
Gede: full string equality test.
oh noes
avatar
Gede: It is a case insensitive full string equality test. I wanted to avoid substrings for exactly that reason.
avatar
JMich: Damn it, substrings would mean a smaller wishlist file for me :P
No worries, and thank you.
No, sorry, my mistake. It should be substrings, as stated in the start documentation (I should get some sleep).
My bad, as I don't use the wishlist myself. I'm working on it now.
Thank you very much Gede! love your script. shame I had no sound but with espeak it's working nicely :D
OK, I think I have improved things a bit more, and squashed that annoying prince checking bug.

Wishlist seems to be working fine, too. One item per line. Let me know if you have any trouble.
avatar
Gede: prince checking bug.
Prince checking? There are royalties check as well?
avatar
Gede: prince checking bug.
avatar
JMich: Prince checking? There are royalties check as well?
It's just a poor bug, don't be too hars with it :P
Post edited March 21, 2016 by phaolo
fancy_sound=True doesn't work for me.
fancy_sound=False works, but has some false positives.
Post edited March 22, 2016 by phaolo