Commit graph

368 commits

Author SHA1 Message Date
Ralf Vogler
195e2a71a2
Merge 5c50aa8de7 into 22f673282b 2023-07-13 10:29:23 -04:00
Ralf Vogler
22f673282b pg: fix a90f90afc0 2023-07-13 11:30:48 +02:00
Ralf Vogler
a90f90afc0 pg: PG_REDEEM: only pause if DEBUG=1
Fixes https://github.com/vogler/free-games-claimer/issues/5#issuecomment-1527063819
2023-07-13 11:28:18 +02:00
Ralf Vogler
2e8a731573 pg: update selectors for internal/external games, fixes #164 2023-07-13 10:56:12 +02:00
Ralf Vogler
04bd56cd77 pg: legacy games: status = claimed and redeemed 2023-07-06 16:48:07 +02:00
Ralf Vogler
f0e15b5c7c pg: fix #158 - page for gog (and ?) changed (button, store, code)
The claim page for Legacy Games is still unchanged and works with the
old code.
2023-06-23 01:24:06 +02:00
Ralf Vogler
85513031f2 pg: external: fix lost elementHandle error due to navigation
elementHandle.$: Protocol error (Page.adoptNode)
2023-06-23 01:21:42 +02:00
Ralf Vogler
0b9d5d0b63 pg: comments 2023-06-22 17:16:35 +02:00
Ralf Vogler
7e4770b846 ue: notify on 'Price is not 0!' + ask to report, #44 2023-06-02 00:52:11 +02:00
Ralf Vogler
d3d22b1582 ue: wait 2s before checking cart, #44 2023-06-02 00:47:48 +02:00
Ralf Vogler
2ceccdae6b
ue: add as experimental to README.md, #44 2023-06-02 00:30:31 +02:00
Ralf Vogler
f906bef2a8 ue: fix 'Sign In'/user detection, #44 2023-06-02 00:14:21 +02:00
Ralf Vogler
00e213cf50 ue: support RECORD=1 2023-06-02 00:11:10 +02:00
Ralf Vogler
5c50aa8de7 eg: print purchaseURL, #127 2023-06-01 16:58:15 +02:00
Ralf Vogler
4e8e8ee884 eg: e.offerMappings is [] for Death Stranding, instead e.productSlug fits 2023-05-25 14:19:17 +02:00
Ralf Vogler
feadfc5acf pg: redeem: gog: status = 'claimed and redeemed' 2023-05-18 18:02:11 +02:00
Ralf Vogler
7fb872608d pg: dlc: try/catch for each dlc, #55 2023-05-18 17:32:02 +02:00
Ralf Vogler
1d1f95d1ab eg: move screenshot up before status checks since blank page after purchaseURL 2023-05-18 16:40:41 +02:00
Ralf Vogler
0d074d0397 pg: dlc: scroll to end of page until all are loaded, #55 2023-05-18 16:03:24 +02:00
Ralf Vogler
368229be09 pg: screenshot prep only if needed 2023-05-17 11:35:10 +02:00
Ralf Vogler
8ee63c7a35 pg: support RECORD=1 2023-05-17 11:29:45 +02:00
Ralf Vogler
819e4cc57e pg: PG_REDEEM tested legacy games successfully, #5 2023-05-17 11:28:31 +02:00
Ralf Vogler
e4ebae3744 pg: PG_REDEEM, fixes for gog, #5 2023-05-17 11:15:07 +02:00
Ralf Vogler
240e64ae4c pg: also use elementHandles() for external 2023-05-17 10:20:17 +02:00
Ralf Vogler
98e4145708 Merge branch 'main' into refactor/prime-gaming 2023-05-17 00:59:44 +02:00
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
02ace424f3 eg: fix gameURL for add-ons
- old `e.catalogNs.mappings[0].pageSlug` -> base game - https://store.epicgames.com/en-US/p/the-sims-4
- new `e.offerMappings[0].pageSlug` -> add-on - https://store.epicgames.com/en-US/p/the-sims-4--the-daring-lifestyle-bundle
2023-05-11 18:40:21 +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
3292257172 eg: try to wait for response confirm-order instead of text on empty page 2023-05-11 17:51:29 +02:00
Ralf Vogler
4a4d3d54c7 Merge branch 'main' into urlsFromJson 2023-05-11 16:32:19 +02:00
Ralf Vogler
47be85f45c eg: EG_COUNTRY to set country of account to avoid unavailable-in-region 2023-05-11 16:31:48 +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
254b674c65 mention error if game is already claimed 2023-04-27 19:23:13 +02:00
Ralf Vogler
3ccec68c33 urls from json, go to purchaseURL instead of click, got captcha 2023-04-27 19:19:56 +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