@ -237,6 +237,14 @@ class perform_site_check(difference_detection_processor):
update_obj['restock']["in_stock"]=Trueifself.fetcher.instock_data=='Possibly in stock'elseFalse
update_obj['restock']["in_stock"]=Trueifself.fetcher.instock_data=='Possibly in stock'elseFalse
logger.debug(f"Watch UUID {watch.get('uuid')} restock check returned instock_data - '{self.fetcher.instock_data}' from JS scraper.")
logger.debug(f"Watch UUID {watch.get('uuid')} restock check returned instock_data - '{self.fetcher.instock_data}' from JS scraper.")
# Very often websites will lie about the 'availability' in the metadata, so if the scraped version says its NOT in stock, use that.
ifself.fetcher.instock_dataandself.fetcher.instock_data!='Possibly in stock':
ifupdate_obj['restock'].get('in_stock'):
logger.warning(
f"Lie detected in the availability machine data!! when scraping said its not in stock!! itemprop was '{itemprop_availability}' and scraped from browser was '{self.fetcher.instock_data}' update obj was {update_obj['restock']}")
logger.warning(f"Setting instock to FALSE, scraper found '{self.fetcher.instock_data}' in the body but metadata reported not-in-stock")