log path of recorded video

This commit is contained in:
Ralf Vogler 2023-09-18 12:49:23 +02:00
parent 2a4da3f49c
commit 1fbabbc0f2
4 changed files with 4 additions and 0 deletions

View file

@ -259,4 +259,5 @@ try {
}
}
if (cfg.debug) writeFileSync(path.resolve(cfg.dir.browser, 'cookies.json'), JSON.stringify(await context.cookies()));
if (page.video()) console.log('Recorded video:', await page.video().path())
await context.close();

1
gog.js
View file

@ -145,4 +145,5 @@ try {
notify(`gog (${user}):<br>${html_game_list(notify_games)}`);
}
}
if (page.video()) console.log('Recorded video:', await page.video().path())
await context.close();

View file

@ -387,4 +387,5 @@ try {
notify(`prime-gaming (${user}):<br>${html_game_list(notify_games)}`);
}
}
if (page.video()) console.log('Recorded video:', await page.video().path())
await context.close();

View file

@ -199,4 +199,5 @@ try {
}
}
if (cfg.debug) writeFileSync(path.resolve(cfg.dir.browser, 'cookies.json'), JSON.stringify(await context.cookies()));
if (page.video()) console.log('Recorded video:', await page.video().path())
await context.close();