From 8ee6815c0fb6ea129d2de600d10e6732e90ce924 Mon Sep 17 00:00:00 2001 From: Jef LeCompte Date: Tue, 2 Mar 2021 11:52:23 -0500 Subject: [PATCH] fix(amazon-uk): add label for ps5 Fixes #2036 --- src/store/lookup.ts | 9 --------- src/store/model/amazon.ts | 6 ++++++ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/store/lookup.ts b/src/store/lookup.ts index e01712a..5b5a524 100644 --- a/src/store/lookup.ts +++ b/src/store/lookup.ts @@ -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) { const options = { ...baseOptions, diff --git a/src/store/model/amazon.ts b/src/store/model/amazon.ts index 0e5a5b8..03c5bb3 100644 --- a/src/store/model/amazon.ts +++ b/src/store/model/amazon.ts @@ -708,6 +708,12 @@ export const Amazon: Store = { brand: 'sony', cartUrl: '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', series: 'sonyps5c', url: 'https://www.amazon.com/dp/B08FC5L3RG',