From b1090606a48d618ac37db7724039ff5b796b567e Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 18 Feb 2012 09:49:57 +0000 Subject: [PATCH] * don't scrape tv shows / video games / etc as movie --- source/net/sourceforge/filebot/web/IMDbClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/web/IMDbClient.java b/source/net/sourceforge/filebot/web/IMDbClient.java index 45a0da77..85e0ae30 100644 --- a/source/net/sourceforge/filebot/web/IMDbClient.java +++ b/source/net/sourceforge/filebot/web/IMDbClient.java @@ -74,7 +74,7 @@ public class IMDbClient implements MovieIdentificationService { String year = node.getNextSibling().getTextContent().replaceAll("[\\p{Punct}\\p{Space}]+", ""); // remove non-number characters String href = getAttribute("href", node); - results.add(new Movie(name, Pattern.matches("\\d{4}", year) ? Integer.parseInt(year) : -1, getImdbId(href))); + results.add(new Movie(name, Integer.parseInt(year), getImdbId(href))); } catch (Exception e) { // ignore illegal movies (TV Shows, Videos, Video Games, etc) }