* use "Combined_episodenumber" and "Combined_season" from the episode record instead of "EpisodeNumber" and "SeasonNumber"

This commit is contained in:
Reinhard Pointner 2010-02-03 00:30:31 +00:00
parent d1b111765e
commit b9027d6abc
1 changed files with 2 additions and 9 deletions

View File

@ -131,15 +131,8 @@ public class TheTVDBClient implements EpisodeListProvider {
for (Node node : nodes) {
String episodeName = getTextContent("EpisodeName", node);
String episodeNumber = getTextContent("EpisodeNumber", node);
String seasonNumber = getTextContent("SeasonNumber", node);
if (seasonNumber.equals("0")) {
String airsBefore = getTextContent("airsbefore_season", node);
seasonNumber = airsBefore == null || airsBefore.isEmpty() ? null : airsBefore;
episodeNumber = "Special";
}
String episodeNumber = getTextContent("Combined_episodenumber", node);
String seasonNumber = getTextContent("Combined_season", node);
episodes.add(new Episode(seriesName, seasonNumber, episodeNumber, episodeName));