Commit graph

437 commits

Author SHA1 Message Date
Ralf Vogler
60acf747d0 pg: scroll to bottom to load all games
There may be so many unclaimed games that not all of them are loaded
initially.
Also relevant to show the correct number of collected games.
2023-05-17 00:55:58 +02:00
Ralf Vogler
c4eb1e03ce pg: need elementHandles() instead of all() for internal since it changes 2023-05-17 00:41:37 +02:00
Ralf Vogler
590b01aba2 pg: refactor: use more locators & all() instead of $ 2023-05-17 00:11:35 +02:00
Ralf Vogler
290fe289d4 pg: fix #142: PG_CLAIMDLC locator 'a' resolved to 2 elements 2023-05-16 13:31:53 +02:00
Ralf Vogler
491ee899a5 pg: #126 change selector to handle potential button text 'Claim' (instead of 'Claim game') for internal games 2023-05-11 19:00:43 +02:00
Ralf Vogler
af935d4889 gog: no quotes around user, as for {eg, pg} 2023-05-11 18:50:54 +02:00
Ralf Vogler
6b13287b61 eg: click 'Yes, buy now' if 'This edition contains something you already have. Still interested?'
Happened for add-on https://store.epicgames.com/en-US/p/the-sims-4--the-daring-lifestyle-bundle
2023-05-11 18:38:44 +02:00
Ralf Vogler
8f174c4bf0 eg: RECORD=1 to recordVideo & recordHar; fixed: recordVideo can't be false
Strangely `recordHar` can be false instead of undefined, but made it symmetric.
2023-05-08 17:29:14 +02:00
Ralf Vogler
7fc0fbc69c Revert "eg: RECORD=1 to recordVideo & recordHar"
This reverts commit 066a99c77c.
2023-05-05 13:36:51 +02:00
Ralf Vogler
066a99c77c eg: RECORD=1 to recordVideo & recordHar 2023-05-05 09:54:21 +02:00
Ralf Vogler
ce51c269f8 eg: only notify for status 'claimed' or 'failed'; DRYRUN -> 'skipped' 2023-05-05 09:30:37 +02:00
Ralf Vogler
8fdf930415
Merge pull request #132 from vogler/unrealengine
Claim free asset packs from unrealengine.com (epic-games)
2023-04-29 11:05:03 +02:00
Ralf Vogler
631197371f ue: claimed successfully; set status, detect owned, better log 2023-04-29 11:01:16 +02:00
Ralf Vogler
5809b0963a ue: unrealengine: add assets to cart & checkout, rest same as for epic-games, #44 2023-04-28 00:59:27 +02:00
Ralf Vogler
5214bea488 cp epic-games.js unrealengine.js 2023-04-28 00:26:09 +02:00
Ralf Vogler
bb51fd8065 use local time instead of UTC, migrate.js, closes #131
Run `node migrate.js localtime data/*.json` to convert
existing `time` entries from UTC to your local timezone.
2023-04-28 00:11:29 +02:00
Ralf Vogler
bc8a89f365 log 'DRYRUN=1 -> Skip order!' 2023-04-27 19:14:48 +02:00
Ralf Vogler
a235ce7915
add star-history 2023-04-25 09:48:20 +02:00
Ralf Vogler
2e0cc4d377
Merge pull request #128 from l-skyalker/fix-epic-claim
fix: update epic claim confirmation text
2023-04-21 14:06:34 +02:00
l-skywalker
670262c118 fix: update epic confirm text 2023-04-20 20:12:49 +02:00
Ralf Vogler
351bf00c7b pg: redeem gog: fix for undefined reason in response, #5 2023-04-14 11:59:33 +02:00
Ralf Vogler
b2d69b4d26 pg: redeem legacy games, #5 2023-04-14 11:53:22 +02:00
Ralf Vogler
28146c7d69 eg: 2s delay after click Continue, #120 2023-04-07 10:23:19 +02:00
Ralf Vogler
e22bb22a53 eg: try click delay for #120 2023-04-07 09:51:18 +02:00
Ralf Vogler
6cbd9fe5e3
link RPi 64-bit OS issue 2023-03-30 17:59:34 +02:00
Ralf Vogler
04f503fea7 eg: mention required base game for free Add-Ons, #106 2023-03-30 16:53:43 +02:00
Ralf Vogler
db5a98eb88 gog: set GOG_NEWSLETTER=1 to not unsubscribe newsletter, closes #109 2023-03-30 14:17:26 +02:00
Ralf Vogler
9285af2544 eg: notify_games filter status 'requires base game', fixes #112
fix 352ee753c9
2023-03-30 14:06:57 +02:00
Ralf Vogler
352ee753c9 eg: skip if 'requires base game', fix #106 2023-03-23 19:57:10 +01:00
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