From 178a33f053e5297c2001f4ffac34b3e40b8e92a4 Mon Sep 17 00:00:00 2001 From: goulven Date: Fri, 6 Sep 2024 10:16:19 +0200 Subject: [PATCH] category fnac bugfix --- .../crawler/services/fetching/CsvIndexationWorker.java | 1 + verticals/src/main/resources/verticals/tv.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crawler/src/main/java/org/open4goods/crawler/services/fetching/CsvIndexationWorker.java b/crawler/src/main/java/org/open4goods/crawler/services/fetching/CsvIndexationWorker.java index ac123cc9e..ed73bf55f 100644 --- a/crawler/src/main/java/org/open4goods/crawler/services/fetching/CsvIndexationWorker.java +++ b/crawler/src/main/java/org/open4goods/crawler/services/fetching/CsvIndexationWorker.java @@ -315,6 +315,7 @@ private void closeIterator(MappingIterator> mi, Logger logge } private void deleteTemporaryFile(String url, File destFile, Logger logger) { + // We delete only downloaded files, to preserve the local files (used for debug) if (url.startsWith("http") && destFile != null && destFile.exists()) { try { Files.delete(destFile.toPath()); diff --git a/verticals/src/main/resources/verticals/tv.yml b/verticals/src/main/resources/verticals/tv.yml index 51c897cbf..b264b0cab 100644 --- a/verticals/src/main/resources/verticals/tv.yml +++ b/verticals/src/main/resources/verticals/tv.yml @@ -23,7 +23,8 @@ icecatTaxonomyId: 1584 # Will associate to this vertical if one of the following categorie is present for the product matchingCategories: - "HIFI>TELEVISION" -- "APPAREILS ELECTRONIQUES > VIDEO > TELEVISEURS" +#Buggy with fnac +#- "APPAREILS ELECTRONIQUES > VIDEO > TELEVISEURS" - "TV, VIDEO, HOME CINEMA>TELEVISEUR>TV LED" - "TV - VIDEO - SON > TELEVISEUR > TELEVISEUR LED" - "TV & VIDEO & HOME CINEMA > TELEVISEUR > TV LED/LCD"