From 41e75b55b290b2803ed1ef28a8274cd8707699f3 Mon Sep 17 00:00:00 2001 From: mynttt Date: Sun, 6 Feb 2022 01:19:48 +0100 Subject: [PATCH] 1.6.5 <=> Updated IMDB webscraper to new web design --- src/main/java/updatetool/imdb/ImdbScraper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/updatetool/imdb/ImdbScraper.java b/src/main/java/updatetool/imdb/ImdbScraper.java index 1790acf..169d402 100644 --- a/src/main/java/updatetool/imdb/ImdbScraper.java +++ b/src/main/java/updatetool/imdb/ImdbScraper.java @@ -36,9 +36,10 @@ public String scrapeFallback(String imdbId, String title) throws Exception { if(expired == null || isExpired(expired)) { var result = scrape(imdbId); - long cacheTime = SCRAPE_EVERY_N_DAYS_IGNORE; + long cacheTime = 0; if(result == null || result == RETURN_LONG_BLACKLIST) { + cacheTime = result == null ? SCRAPE_EVERY_N_DAYS_IGNORE : SCRAPE_BLACKLIST_IF_CANT_BE_RATED; idCachedValue.remove(imdbId); result = null; } else {