1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* imdb page scraper helper for people that really need it

This commit is contained in:
Reinhard Pointner 2013-07-24 05:06:04 +00:00
parent 6217589f82
commit 97c0b369f3

View File

@ -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
}