gog: newsletter is not subscribed again if game already existed
This commit is contained in:
parent
9ab44bd7aa
commit
74bd2f538a
1 changed files with 1 additions and 1 deletions
2
gog.js
2
gog.js
|
|
@ -127,7 +127,7 @@ try {
|
||||||
db.data[user][title].status ||= status;
|
db.data[user][title].status ||= status;
|
||||||
notify_games.push({ title, url, status });
|
notify_games.push({ title, url, status });
|
||||||
|
|
||||||
if (status == 'claimed') { // TODO check if this is enough or if newsleter is enabled if 'existed'
|
if (status == 'claimed') {
|
||||||
console.log("Unsubscribe from 'Promotions and hot deals' newsletter");
|
console.log("Unsubscribe from 'Promotions and hot deals' newsletter");
|
||||||
await page.goto('https://www.gog.com/en/account/settings/subscriptions');
|
await page.goto('https://www.gog.com/en/account/settings/subscriptions');
|
||||||
await page.locator('li:has-text("Promotions and hot deals") label').uncheck();
|
await page.locator('li:has-text("Promotions and hot deals") label').uncheck();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue