fix(amazon-uk): add label for ps5

Fixes #2036
This commit is contained in:
Jef LeCompte
2021-03-02 11:52:23 -05:00
parent 6934d5b31c
commit 8ee6815c0f
2 changed files with 6 additions and 9 deletions
-9
View File
@@ -449,15 +449,6 @@ async function lookupCardInStock(store: Store, page: Page, link: Link) {
} }
} }
// Fixme: currently causing issues
// Do API inventory validation in realtime (no cache) if available
// if (
// store.realTimeInventoryLookup !== undefined &&
// link.itemNumber !== undefined
// ) {
// return store.realTimeInventoryLookup(link.itemNumber);
// }
if (store.labels.inStock) { if (store.labels.inStock) {
const options = { const options = {
...baseOptions, ...baseOptions,
+6
View File
@@ -708,6 +708,12 @@ export const Amazon: Store = {
brand: 'sony', brand: 'sony',
cartUrl: cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08FC5L3RG&Quantity.1=1', 'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08FC5L3RG&Quantity.1=1',
labels: {
inStock: {
container: '#productTitle',
text: ['playstation 5 console'],
},
},
model: 'ps5 console', model: 'ps5 console',
series: 'sonyps5c', series: 'sonyps5c',
url: 'https://www.amazon.com/dp/B08FC5L3RG', url: 'https://www.amazon.com/dp/B08FC5L3RG',