From 3f191bbd00e7474fbef71ddd28955672835ef1a0 Mon Sep 17 00:00:00 2001 From: wofnull Date: Sun, 17 Jan 2021 14:22:10 +0100 Subject: [PATCH] fix(newegg): false positives (all stores) (#1714) --- src/store/model/newegg-ca.ts | 12 +++++++++++- src/store/model/newegg-sg.ts | 12 +++++++++++- src/store/model/newegg.ts | 12 +++++++++++- 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/store/model/newegg-ca.ts b/src/store/model/newegg-ca.ts index 5f67a4f..90f711b 100644 --- a/src/store/model/newegg-ca.ts +++ b/src/store/model/newegg-ca.ts @@ -16,7 +16,17 @@ export const NeweggCa: Store = { container: 'div#app div.product-price > ul > li.price-current > strong', euroFormat: false - } + }, + outOfStock: [ + { + container: '.product-inventory', + text: [' out of stock.'] + }, + { + container: '.product-flag', + text: ['out of stock '] + } + ] }, links: [ { diff --git a/src/store/model/newegg-sg.ts b/src/store/model/newegg-sg.ts index fdba2a5..1b4946a 100644 --- a/src/store/model/newegg-sg.ts +++ b/src/store/model/newegg-sg.ts @@ -20,7 +20,17 @@ export const NeweggSg: Store = { ], maxPrice: { container: '.price-current' - } + }, + outOfStock: [ + { + container: '.product-inventory', + text: [' out of stock.'] + }, + { + container: '.product-flag', + text: ['out of stock '] + } + ] }, links: [ { diff --git a/src/store/model/newegg.ts b/src/store/model/newegg.ts index c2fe1c4..4e8964b 100644 --- a/src/store/model/newegg.ts +++ b/src/store/model/newegg.ts @@ -20,7 +20,17 @@ export const Newegg: Store = { ], maxPrice: { container: '.price-current' - } + }, + outOfStock: [ + { + container: '.product-inventory', + text: [' out of stock.'] + }, + { + container: '.product-flag', + text: ['out of stock '] + } + ] }, links: [ {