Ralf Vogler
b7d5d43078
eg: wait for "Place Order" button to not be loading, fixes #84
2023-03-17 20:59:55 +01:00
Ralf Vogler
b75f538d8a
eg: add EG_PARENTALPIN to enter Parental Controls PIN, #98
2023-03-17 11:19:38 +01:00
Ralf Vogler
9435ff6edb
fix #97 : NOTIFY_TITLE in quotes, otherwise fails on spaces
2023-03-17 10:19:34 +01:00
Ralf Vogler
4f1ca53d1b
eg: fix waiting for captcha for non-EU accounts
...
https://github.com/vogler/free-games-claimer/issues/84#issuecomment-1462993079
2023-03-16 15:56:00 +01:00
Ralf Vogler
9df80fa6d8
eg: wait 2s before 'Place Order', fix #84 for everyone?
2023-03-10 09:16:54 +01:00
Ralf Vogler
0cfb9d29aa
eg: Accept End User License Agreement (only needed once per account)
2023-03-09 16:21:19 +01:00
Ralf Vogler
c48c80717a
pg: only screenshot if claimed, incr. height to fit all games, fixes #82
2023-03-08 17:46:03 +01:00
Ralf Vogler
7520bf1976
gog: screenshot: wait for not is-loading
2023-03-08 16:54:10 +01:00
Ralf Vogler
74bd2f538a
gog: newsletter is not subscribed again if game already existed
2023-03-08 16:41:31 +01:00
Ralf Vogler
9ab44bd7aa
gog: fix indent
2023-03-08 16:41:06 +01:00
Ralf Vogler
07ce17f8e3
link issues for experimental options PG_REDEEM, PG_CLAIMDLC
2023-03-06 22:35:37 +01:00
Ralf Vogler
b51547a376
pg: experimental PG_CLAIMDLC, WIP #55
2023-03-06 22:32:08 +01:00
Ralf Vogler
a5f42a9609
sample command: and environment: in docker-compose.yml, #85
2023-03-06 22:13:58 +01:00
Ralf Vogler
cbdea1b5d0
add username to notification of claimed games, closes #88
2023-03-06 21:15:42 +01:00
Ralf Vogler
e45c3a5dca
eg: no captcha -> no special timeout for solving one
2023-03-06 21:08:57 +01:00
Ralf Vogler
a8fa80cd05
eg: fix #84 like #75 with click delay >0ms
2023-03-06 21:08:24 +01:00
Ralf Vogler
944cca6715
eg: add click delay, fixes #75
...
Playwright triggered the click such that the purchase frame opened, but
did not resolve the promise. Had to move mouse into the browser for it
to continue. Adding a click delay of 1ms also worked (default is no
delay between mouse down and up). Went for 11ms. A typical click is
probably 100-200ms.
2023-02-24 20:56:25 +01:00
Ralf Vogler
0d2ff0c8a9
pg: add status to db for external games: claimed, claimed and redeemed, failed
2023-02-24 19:57:57 +01:00
Ralf Vogler
862fd20d5b
mention open issue with Enquirer: must cancel prompt with Escape instead of Ctrl-C
2023-02-24 13:21:55 +01:00
Ralf Vogler
cc39b4b3d1
pg: skip if user has no Prime membership, closes #76 ?
2023-02-24 12:31:42 +01:00
Ralf Vogler
dc28c30e7b
pg: make DRYRUN=1 terminate for external games, TODO only shows first game
2023-02-24 12:28:56 +01:00
Ralf Vogler
73a7cffd47
await notify before process.exit, #69
2023-02-24 00:08:35 +01:00
Ralf Vogler
114631da4d
add NOTIFY_TITLE - Optional title for notifications, e.g. Pushover, #69
2023-02-23 23:35:47 +01:00
Ralf Vogler
e73d3d47d7
pg: PG_REDEEM == '1' like for other boolean options
2023-02-23 23:10:35 +01:00
Ralf Vogler
792d2859b3
mention how to run several scripts in docker via bash -c, #73
2023-02-23 19:33:08 +01:00
Ralf Vogler
08b9df7cc4
pg: microsoft games: click next, #5
2023-02-23 12:51:36 +01:00
Ralf Vogler
fc3f0a6333
pg: PG_REDEEM for external stores, post your response in #5
...
Known responses (missing unused key):
- GOG: `Invalid or no captcha`, `code_used`, `code_not_found`
- microsoft games: `NotFound`
2023-02-23 12:38:26 +01:00
Ralf Vogler
38c5402df0
exitCode should be 130 instead of 1 on SIGINT
...
https://unix.stackexchange.com/questions/386836/why-is-doing-an-exit-130-is-not-the-same-as-dying-of-sigint
2023-02-22 10:26:32 +01:00
Ralf Vogler
21ed2794f4
change default TIMEOUT from 20s to 60s, #62
2023-02-22 01:10:34 +01:00
Ralf Vogler
a3892eaafb
update description & version in package.json
2023-02-22 00:59:22 +01:00
Ralf Vogler
9df4836221
gitignore *.env for safety :)
2023-02-22 00:52:25 +01:00
Ralf Vogler
18c27ba881
use playwright-firefox such that npm install does not download other browsers
2023-02-22 00:49:58 +01:00
Ralf Vogler
97f6735833
ncu -u updated playwright
2023-02-22 00:31:11 +01:00
Ralf Vogler
518008584f
gog: actually wait for login instead of reentering the loop
2023-02-22 00:26:48 +01:00
Ralf Vogler
b0f662479d
eg: exit like others if headless and no login data given
2023-02-22 00:16:19 +01:00
Ralf Vogler
66694d65e5
SIGINT handler to not notify about error on Ctrl-C
2023-02-22 00:15:03 +01:00
Ralf Vogler
c1cd2db721
Merge pull request #71 from vogler/login_timeout
...
add `LOGIN_TIMEOUT` with default 180s
2023-02-21 23:33:15 +01:00
Ralf Vogler
efeccf9493
use enquirer instead of prompts, use plugin for cancel after timeout
2023-02-21 23:25:18 +01:00
Ralf Vogler
8c2ac3b6d0
add LOGIN_TIMEOUT (180s) for PW, but prompts still wait forever
2023-02-21 21:21:55 +01:00
Ralf Vogler
704c4b01e1
set process.exitCode = 1 on error; don't want to rethrow
2023-02-21 21:00:26 +01:00
Ralf Vogler
1b319cacf7
docker: manually install-deps firefox: 1.12GB -> 932MB
2023-02-20 18:37:45 +01:00
Ralf Vogler
3158c5515f
docker: no need for --no-install-suggests
2023-02-20 18:35:39 +01:00
Ralf Vogler
5f6d9ca830
docker: --no-install-recommends for nodejs
2023-02-20 18:32:13 +01:00
Ralf Vogler
992fe4fc8b
notify-test.js
2023-02-20 15:31:30 +01:00
Ralf Vogler
957ba6d7ca
better explain 'How to set options'
2023-02-17 14:48:48 +01:00
Ralf Vogler
95598887cc
readme md table spaces
2023-02-16 16:53:21 +01:00
Ralf Vogler
e2b07dc1e6
BROWSER_DIR for multiple profiles or testing, SCREENSHOTS_DIR, closes #12
2023-02-16 16:25:46 +01:00
Ralf Vogler
a90062b631
gog: Claim (.*) and don't miss -> Claim (.*), fixes #60
2023-02-15 19:33:44 +01:00
Ralf Vogler
ec2d31ed79
remove unused NopeCHA extension
2023-02-15 10:06:52 +01:00
Ralf Vogler
c65f153090
remove not needed await
2023-02-15 10:06:52 +01:00