Commit graph

78 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
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
Ralf Vogler
9355ff3e01 notify: forgot to join list, gets rid of commas 2023-01-25 19:35:18 +01:00
Ralf Vogler
0913ca3da7 pg: exit on login error 2023-01-25 19:26:34 +01:00
Ralf Vogler
13e6f05cd0 pg: notify about games and login 2023-01-25 18:54:23 +01:00
Ralf Vogler
3b1b900d77 pg: TODO check for wrong credentials 2023-01-25 16:38:56 +01:00
Ralf Vogler
1a3d90f795 add otplib to generate OTP from key for eg, pg; gog only has mail 2023-01-10 00:06:25 +01:00
Ralf Vogler
2168c40aa5 centralize env vars in config.js 2023-01-09 10:47:19 +01:00
Ralf Vogler
792b4b3915 options: store-specific logins, drop SCREEN_ 2023-01-07 13:55:31 +01:00
Ralf Vogler
09c3e57a8a use SHOW for pg and eg, headless by default for both, but show inside Docker 2023-01-07 13:47:08 +01:00
Ralf Vogler
a4d39b6a6e pg: fix for #41 2022-12-29 15:23:22 +01:00
Ralf Vogler
446c1c9346 pg: comment external microsoft 2022-12-29 15:22:55 +01:00
Ralf Vogler
3c6d7f4300 pg: index by user and title, migrateDB 2022-12-29 15:17:08 +01:00
Ralf Vogler
a10c61379b pg: prompts for login & MFA 2022-12-29 14:54:13 +01:00
Ralf Vogler
4ed5aa7774 pg: no longer track runs in json 2022-12-29 12:58:18 +01:00
Ralf Vogler
8edc4727b3 pg: changes from eg 2022-12-29 12:54:45 +01:00
Ralf Vogler
09b867158c viewport dimensions via env 2022-12-29 01:23:17 +01:00
Ralf Vogler
1c38f730ab docker: run both epic-games and prime-gaming by default 2022-12-24 15:20:45 +01:00
Ralf Vogler
34393eec76 pg: also use firefox
Dropping chromium reduced image size by ~500MB from 1.55GB to 1.04GB.
2022-12-21 01:25:32 +01:00
Ralf Vogler
0df7bf35ba pg: redeem code for microsoft games 2022-11-01 22:21:47 +01:00
Ralf Vogler
7ffdd61c44 pg: indent logging per game 2022-11-01 22:18:33 +01:00
Ralf Vogler
bf647936eb vscode format dode 2022-09-26 20:08:52 +02:00
Ralf Vogler
2791112fd6 sanitizeFilename -> filenamify, use for datetime 2022-09-16 15:34:28 +02:00
Ralf Vogler
6f2271168d clickIfExists only if isVisible, closes #20 2022-08-28 20:35:02 +01:00