prime-gaming: get custom redeem URL for legacy games
This commit is contained in:
parent
152fe12fdd
commit
80e2a693d7
1 changed files with 3 additions and 0 deletions
|
|
@ -97,6 +97,9 @@ for (const card of games) {
|
|||
if (store in redeem) {
|
||||
const code = await page.inputValue('input[type="text"]');
|
||||
console.log('Code to redeem game:', code);
|
||||
if (store == 'legacy games') { // may be different URL like https://legacygames.com/primeday/puzzleoftheyear/
|
||||
redeem[store] = await (await page.$('li:has-text("Click here") a')).getAttribute('href');
|
||||
}
|
||||
console.log('URL to redeem game:', redeem[store]);
|
||||
}
|
||||
// save screenshot of potential code just in case
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue