* fix tvrage seriesstartdate support
This commit is contained in:
parent
ced6f4e9af
commit
cd8b8aa620
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue