Commit graph

113 commits

Author SHA1 Message Date
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
Ralf Vogler
08da100646 no : in filenames on Windows! closes #21, ref #20 2022-08-28 20:28:56 +01:00
Ralf Vogler
4ff208a6b0 prime-gaming: screenshots: internal before claim, end-of-run just games instead of full page 2022-08-03 00:43:54 +02:00
Ralf Vogler
f770ef5580 include URL to game in .json 2022-07-14 17:15:51 +02:00
Ralf Vogler
f888981415 extract sanitizeFilename 2022-07-14 17:04:00 +02:00
Ralf Vogler
87df6d0e26 prime-gaming: remove try-finally TODO 2022-07-14 16:48:05 +02:00
Ralf Vogler
02a49a5a19 indent prime-gaming 2022-07-13 15:57:04 +02:00
Ralf Vogler
18de5fdfa8 use lowdb for data/prime-gaming.json 2022-07-13 15:49:03 +02:00
Ralf Vogler
80e2a693d7 prime-gaming: get custom redeem URL for legacy games 2022-06-30 22:40:04 +02:00
Ralf Vogler
152fe12fdd prime-gaming: regex for store_text, screenshot later since code not captured 2022-06-30 22:22:34 +02:00
Ralf Vogler
584c80e939 screenshots/{prime-gaming/{internal,external}, epic-games} 2022-06-30 16:43:22 +02:00
Ralf Vogler
70b2b0d105 prime-gaming: button text changed from Games to Prime Day -> use [data-type="Game"] instead 2022-06-30 16:36:14 +02:00
Ralf Vogler
59450ed05c mv userDataDir data/browser; mv screenshots data/ 2022-05-05 23:49:55 +02:00
Ralf Vogler
4e90fb67c6 prime-gaming: screenshot of claimed external game, print URL to redeem 2022-04-30 21:52:55 +02:00
Ralf Vogler
fdf34ef218 prime-gaming: fix selectors 2022-04-30 21:11:27 +02:00
Ralf Vogler
930b7b5256 prime-gaming: removing Headless from userAgent not required, works headless 2022-03-31 19:56:02 +02:00