Commit graph

46 commits

Author SHA1 Message Date
4n4n4s
1f0fe51e3a
Merge 1e9495c777 into efe4faab3e 2023-11-07 20:24:41 +01:00
Ralf Vogler
b99a154267 Revert "workaround for recordVideo broken in Playwright 1.36"
This reverts commit 13b2917dd0.

Fine to do after upgrade to 1.39 in 75f7d77445.
which included https://github.com/microsoft/playwright/issues/27086
2023-11-02 16:26:45 +01:00
4n4n4s
1e9495c777 * dealing with case that filters deliver no results 2023-10-03 18:25:14 +00:00
4n4n4s
b4bec61b4f * Added option to specify multiple urls
- you can specify downloads for games and also dls for owned games etc
2023-10-03 18:14:53 +00:00
4n4n4s
a2a83ebd84 Updated logic based on comment 2023-09-22 11:23:02 +00:00
4n4n4s
804ecf98d0 Updated GOG claiming
- additional checks for freegames for filters
- cleanup file
- updated README
2023-09-22 06:24:21 +00:00
4n4n4s
5202f7ac69
Merge branch 'main' into gog 2023-09-20 18:44:19 +02:00
Ralf Vogler
41f1f95509 PW: replace deprecated type() with pressSequentially() for OTPs 2023-09-18 14:02:15 +02:00
Ralf Vogler
13b2917dd0 workaround for recordVideo broken in Playwright 1.36
Recording videos with relative path as in docs was broken for Firefox.
Issue: https://github.com/microsoft/playwright/issues/27086
Can be reverted after PR is available in release: https://github.com/microsoft/playwright/pull/27099
2023-09-18 13:03:04 +02:00
Ralf Vogler
b748460b73 disable Playwright's handleSIGINT and close context ourselves to save recordings also on SIGINT 2023-09-18 12:58:20 +02:00
Ralf Vogler
1fbabbc0f2 log path of recorded video 2023-09-18 12:49:23 +02:00
4n4n4s
a8809fcd79 Added possibility to claim other freegames from GOG 2023-09-10 18:50:06 +00:00
Ralf Vogler
d51f7310d9 gog: fix #200, uncheck 'Marketing communications through Trusted Partners' 2023-09-07 13:56:37 +02:00
Ralf Vogler
6a7cca31a4 update dependencies via ncu -u, lowdb: pass defaultData
dotenv                          ^16.0.3  →  ^16.3.1
  enquirer                         ^2.3.6  →   ^2.4.1
  lowdb                            ^5.1.0  →   ^6.0.1
  playwright-firefox              ^1.31.0  →  ^1.37.1
  puppeteer-extra-plugin-stealth  ^2.11.1  →  ^2.11.2

https://github.com/typicode/lowdb/releases/tag/v6.0.0
> Require defaultData parameter for Low and LowSync constructors to improve TypeScript experience
2023-08-24 13:14:39 +02:00
Ralf Vogler
b5ead8ea21 SCREENSHOTS_DIR=0 to disable screenshots, fixes #172 2023-07-20 16:10:50 +02:00
Ralf Vogler
af935d4889 gog: no quotes around user, as for {eg, pg} 2023-05-11 18:50:54 +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
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
cbdea1b5d0 add username to notification of claimed games, closes #88 2023-03-06 21:15:42 +01:00
Ralf Vogler
73a7cffd47 await notify before process.exit, #69 2023-02-24 00:08:35 +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
518008584f gog: actually wait for login instead of reentering the loop 2023-02-22 00:26:48 +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
a90062b631 gog: Claim (.*) and don't miss -> Claim (.*), fixes #60 2023-02-15 19:33:44 +01:00
Ralf Vogler
d3e4c58c80 gog: only unsubscribe from newsletter if a game was claimed? 2023-02-09 16:53:42 +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
21a4e06209 gog: check for reCAPTCHA on login; better info for eg 2023-01-29 20:27:05 +01:00
Ralf Vogler
0393a3998b info about escaping prompts only if needed 2023-01-29 19:52:18 +01:00
Ralf Vogler
d4bf4a7af0 gog: wait for username after login, barrier before, fixes #53 2023-01-29 19:40:44 +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
95b703efb1 gog: notify about games and login 2023-01-25 18:29:06 +01:00
Ralf Vogler
8139c0a78f gog: save metadata, screenshot, closes #18 2023-01-23 14:45:29 +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
6305ffd15d gog: login, claim (waiting), unsubscribe newsletter 2023-01-07 12:31:23 +01:00
Ralf Vogler
593677ca19 cp prime-gaming.js gog.js 2022-12-30 21:36:34 +01:00