From af42d2c4482a04a7e2cf8d124efb4f77a502acc7 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Thu, 14 Nov 2019 08:47:48 +0100 Subject: [PATCH] improve OLX ad status detection --- app/crawler/specificCrawlers/olx.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/crawler/specificCrawlers/olx.js b/app/crawler/specificCrawlers/olx.js index 6ea9e8a..ede9734 100644 --- a/app/crawler/specificCrawlers/olx.js +++ b/app/crawler/specificCrawlers/olx.js @@ -576,7 +576,10 @@ class OlxCrawler { locationLong = parseFloat(locationLatLngMatches[2]) || null; } - if (title.indexOf("[PRODANO]") !== -1) { + if ( + title.indexOf("[PRODANO]") !== -1 || + title.indexOf("[ZAVRÅ ENO]") !== -1 + ) { status = AD_STATUS.STATUS_SOLD; }