improve OLX ad status detection

This commit is contained in:
Bilal Catic
2019-11-14 08:47:48 +01:00
parent 5148f88a62
commit af42d2c448

View File

@@ -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;
}