Ralf Vogler
5c8f8fc3fd
pg: dlc: log url of dlc if account not linked, #180
2023-08-17 16:44:59 +02:00
Ralf Vogler
86832e7fe9
pg: dlc: log url of dlc if account not linked, #180
2023-08-17 16:43:47 +02:00
Ralf Vogler
d0761dea26
pg: dlc: account linking: mention store, close #180
2023-08-17 16:37:05 +02:00
Ralf Vogler
b5ead8ea21
SCREENSHOTS_DIR=0 to disable screenshots, fixes #172
2023-07-20 16:10:50 +02: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
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
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
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
c48c80717a
pg: only screenshot if claimed, incr. height to fit all games, fixes #82
2023-03-08 17:46:03 +01:00
Ralf Vogler
b51547a376
pg: experimental PG_CLAIMDLC, WIP #55
2023-03-06 22:32:08 +01:00
Ralf Vogler
cbdea1b5d0
add username to notification of claimed games, closes #88
2023-03-06 21:15:42 +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
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
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
18c27ba881
use playwright-firefox such that npm install does not download other browsers
2023-02-22 00:49:58 +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
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
e2b07dc1e6
BROWSER_DIR for multiple profiles or testing, SCREENSHOTS_DIR, closes #12
2023-02-16 16:25:46 +01:00
Ralf Vogler
c058bafcf3
remove migrateDb
...
comment: remove this after some time since it will run fine without and people can still use this commit to adjust their data/epic-games.json and data/prime-gaming.json
2023-02-15 10:06:52 +01:00
Ralf Vogler
acbfa9156e
pg: ignore empty login error message, fixes #58
2023-02-14 10:29:21 +01:00
Ralf Vogler
dff712d998
skip prompt for password if email is missing
2023-02-09 16:28:27 +01:00
Ralf Vogler
b9e9abe546
page.waitForNavigation -> page.waitForURL
2023-02-04 21:37:04 +01:00
Ralf Vogler
eb17a49628
extract prompt into util.js
2023-02-03 16:03:01 +01:00
Ralf Vogler
0393a3998b
info about escaping prompts only if needed
2023-01-29 19:52:18 +01:00
Ralf Vogler
c5b0065a50
TypeError: String includes not contains, #53 ; only first line of error
2023-01-29 19:28:02 +01:00
Ralf Vogler
72a61458fc
notify: escapeHtml for titles
2023-01-25 20:56:35 +01:00