From cecc54082f08944b5fcefd2caffcb1ab04c4fb29 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Wed, 25 Jan 2023 17:45:50 +0100 Subject: [PATCH] eg: title now in span instead of div --- epic-games.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epic-games.js b/epic-games.js index 926523e..013c25f 100644 --- a/epic-games.js +++ b/epic-games.js @@ -123,7 +123,7 @@ try { await page.click('button:has-text("Continue")'); } - const title = await page.locator('h1 div').first().innerText(); + const title = await page.locator('h1').first().innerText(); const game_id = page.url().split('/').pop(); db.data[user][game_id] ||= { title, time: datetime(), url: page.url() }; // this will be set on the initial run only! console.log('Current free game:', title);