This commit is contained in:
dgtlmoon
2023-12-09 13:08:52 +01:00
parent 0f9d3a0dcf
commit 8090d0dac6

View File

@@ -75,14 +75,11 @@ class perform_site_check(difference_detection_processor):
update_obj['content_type'] = self.fetcher.headers.get('Content-Type', '')
update_obj["last_check_status"] = self.fetcher.get_last_status_code()
# Main detection method
fetched_md5 = None
# Try/prefer the structured data first if it exists
# https://schema.org/ItemAvailability Which strings mean we should consider it in stock?
availability = self.get_itemprop_availability()
if availability:
self.fetcher.instock_data = availability
self.fetcher.instock_data = availability # Stored as the text snapshot
if any(availability in s for s in
[
'InStock',