* updated TVDotComClient client because of site changes in the search result page

* resolve & in TVRage xml feed titles
This commit is contained in:
Reinhard Pointner 2009-03-14 10:23:41 +00:00
parent 64d8c3c2b4
commit 384e75576a
2 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ public class TVDotComClient implements EpisodeListClient {
Document dom = getHtmlDocument(searchUrl);
List<Node> nodes = selectNodes("//H3[@class='title']/A", dom);
List<Node> nodes = selectNodes("//*[@class='title']//descendant-or-self::A", dom);
List<SearchResult> searchResults = new ArrayList<SearchResult>(nodes.size());
@ -74,7 +74,7 @@ public class TVDotComClient implements EpisodeListClient {
searchResults.add(new HyperLink(title, episodeListingUrl));
} catch (Exception e) {
Logger.getLogger("global").log(Level.WARNING, "Invalid href: " + href, e);
Logger.getLogger(getClass().getName()).log(Level.WARNING, "Invalid href: " + href, e);
}
}

View File

@ -99,7 +99,7 @@ public class TVRageClient implements EpisodeListClient {
List<Episode> episodes = new ArrayList<Episode>(nodes.size());
for (Node node : nodes) {
String title = getTextContent("title", node);
String title = getTextContent("title", node).replace("&amp;", "&");
String episodeNumber = getTextContent("seasonnum", node);
String seasonNumber = node.getParentNode().getAttributes().getNamedItem("no").getTextContent();
@ -134,7 +134,7 @@ public class TVRageClient implements EpisodeListClient {
maxSeason = seasonNumber;
}
} catch (NumberFormatException e) {
Logger.getLogger("global").log(Level.WARNING, "Illegal season number", e);
Logger.getLogger(getClass().getName()).log(Level.WARNING, "Illegal season number", e);
}
}