From 4b073df2d52e506f77313b4b6344b5f495f0e3cd Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 11 Jul 2012 20:35:25 +0000 Subject: [PATCH] * ignore video games --- source/net/sourceforge/filebot/web/IMDbClient.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/net/sourceforge/filebot/web/IMDbClient.java b/source/net/sourceforge/filebot/web/IMDbClient.java index 180bfb38..d7982bf9 100644 --- a/source/net/sourceforge/filebot/web/IMDbClient.java +++ b/source/net/sourceforge/filebot/web/IMDbClient.java @@ -94,6 +94,10 @@ public class IMDbClient implements MovieIdentificationService { protected Movie scrapeMovie(Document dom) { try { + String header = selectString("//H1", dom); + if (header.toUpperCase().contains("(VG)")) // ignore video games + return null; + String name = selectString("//H1/A/text()", dom); String year = new Scanner(selectString("//H1/A/following::A/text()", dom)).useDelimiter("\\D+").next(); String url = selectString("//H1/A/@href", dom);