Gede: In the text you see scrolling you will find a line saying 'Match found for "FOO"' [..]
You may want to play a little with this file. Add an obvious match like "e", or include only an impossible match like "foobarbaz". Let me know if you still find it misbehaving.
phaolo: I see the 'Match found for "FOO"' and hear the beep every time.
Even by using only these 3 lines:
xxxxx
yyyyy
zzzzz
Is your wishlist.txt in the same directory as the script?
I found it didn't trigger for games added to the wishlist after the script had been started. Added a few debug statements, and it merrily reported "wishlist_entry" as False despite this obviously not being so. So I looked around, and saw provide_notification was being called in check_games only if game_id was not in seen_games. Makes sense, we don't want to spam the user with a ton of browser instances. But it also means that adding a previously seen game to the wishlist won't trigger anything.
Here's an example:
"witcher" is in the wishlist:
02:07:10 NEW! "the witcher 2" at USD 2.99 (-85%) 7/50 copies ('
https://www.gog.com//game/the_witcher_2',)
DEBUG: this is wishlist_entry witcher
(Match found for "witcher")
01:07:10 "the witcher 2" USD 2.99 7/50
You may nap for 0.3 more minutes (01:07:31). I'll stand guard! Next peek in 21 seconds.
01:07:31 "the witcher 2" USD 2.99 5/50 expected sale time: 0.9 min (01:08:23))
You may nap for 0.9 more minutes (01:08:23). I'll stand guard! Next peek in 30 seconds.
01:08:02 "the witcher 2" USD 2.99 3/50 expected sale time: 0.7 min (01:08:43))
You may nap for 0.7 more minutes (01:08:43). I'll stand guard! Next peek in 30 seconds.
"tales" isn't:
02:08:32 NEW! "tales from the borderlands" at USD 8.49 (-66%) 40/40 copies ('
https://www.gog.com//game/tales_from_the_borderlands',)
DEBUG: this is wishlist_entry False
DEBUG: wishlist entry is false
01:08:32 "tales from the borderlands" USD 8.49 40/40
You may nap for 2.0 more minutes (01:10:32). I'll stand guard! Next peek in 30 seconds.
now "tales" has been added:
01:09:02 "tales from the borderlands" USD 8.49 35/40 expected sale time: 3.5 min (01:12:33))
You may nap for 3.5 more minutes (01:12:33). I'll stand guard! Next peek in 30 seconds.
01:09:32 "tales from the borderlands" USD 8.49 17/40 expected sale time: 0.6 min (01:10:08))
You may nap for 0.6 more minutes (01:10:08). I'll stand guard! Next peek in 30 seconds.
01:10:03 "tales from the borderlands" USD 8.49 3/40 expected sale time: 0.1 min (01:10:09))
No time to sleep! Next peek in 6 seconds.
I added dzen2 notifications, and put provide_notifications before the game_id check. This works nicely - for me :)