* fix tvrage seriesstartdate support

This commit is contained in:
Reinhard Pointner 2011-10-01 04:18:24 +00:00
parent ced6f4e9af
commit cd8b8aa620
2 changed files with 3 additions and 4 deletions

View File

@ -66,13 +66,12 @@ public class TVRageClient extends AbstractEpisodeListProvider {
@Override
public List<Episode> getEpisodeList(SearchResult searchResult, Locale locale) throws IOException, SAXException {
int showId = ((TVRageSearchResult) searchResult).getShowId();
URL episodeListUrl = new URL("http", host, "/feeds/episode_list.php?sid=" + showId);
URL episodeListUrl = new URL("http", host, "/feeds/full_show_info.php?sid=" + showId);
Document dom = getDocument(episodeListUrl);
String seriesName = selectString("Show/name", dom);
Date seriesStartDate = Date.parse(selectString("//started", dom), "MMM/dd/yyyy");
Date seriesStartDate = Date.parse(selectString("Show/started", dom), "MMM/dd/yyyy");
List<Episode> episodes = new ArrayList<Episode>(25);
List<Episode> specials = new ArrayList<Episode>(5);

View File

@ -43,7 +43,7 @@ public class TVRageClientTest {
Episode chosen = list.get(21);
assertEquals("Buffy the Vampire Slayer", chosen.getSeriesName());
assertEquals("2002-04-09", chosen.getSeriesStartDate().toString());
assertEquals("1997-03-10", chosen.getSeriesStartDate().toString());
assertEquals("Chosen", chosen.getTitle());
assertEquals("22", chosen.getEpisode().toString());
assertEquals("7", chosen.getSeason().toString());