Skip to content

Commit

Permalink
1.6.5 <=> Updated IMDB webscraper to new web design
Browse files Browse the repository at this point in the history
  • Loading branch information
mynttt committed Feb 6, 2022
1 parent c5aba01 commit 41e75b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/updatetool/imdb/ImdbScraper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 41e75b5

Please sign in to comment.