From 97c0b369f369de3af67ff7aa1cd96e56208caf44 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 24 Jul 2013 05:06:04 +0000 Subject: [PATCH] * imdb page scraper helper for people that really need it --- source/net/sourceforge/filebot/web/IMDbClient.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/web/IMDbClient.java b/source/net/sourceforge/filebot/web/IMDbClient.java index 4a06700c..fed1b3f7 100644 --- a/source/net/sourceforge/filebot/web/IMDbClient.java +++ b/source/net/sourceforge/filebot/web/IMDbClient.java @@ -156,7 +156,12 @@ public class IMDbClient implements MovieIdentificationService { public String scrape(String imdbid, String xpath) throws IOException, SAXException { - return selectString(xpath, parsePage(getMoviePageLink(getImdbId(imdbid)).toURL())); // helper for scraping data in user scripts + return scrape(getMoviePageLink(getImdbId(imdbid)).toURL(), xpath); // helper for scraping data in user scripts + } + + + public String scrape(URL url, String xpath) throws IOException, SAXException { + return selectString(xpath, parsePage(url)); // helper for scraping data in user scripts }