* use "Combined_episodenumber" and "Combined_season" from the episode record instead of "EpisodeNumber" and "SeasonNumber"
This commit is contained in:
parent
d1b111765e
commit
b9027d6abc
|
@ -131,15 +131,8 @@ public class TheTVDBClient implements EpisodeListProvider {
|
||||||
|
|
||||||
for (Node node : nodes) {
|
for (Node node : nodes) {
|
||||||
String episodeName = getTextContent("EpisodeName", node);
|
String episodeName = getTextContent("EpisodeName", node);
|
||||||
String episodeNumber = getTextContent("EpisodeNumber", node);
|
String episodeNumber = getTextContent("Combined_episodenumber", node);
|
||||||
String seasonNumber = getTextContent("SeasonNumber", node);
|
String seasonNumber = getTextContent("Combined_season", node);
|
||||||
|
|
||||||
if (seasonNumber.equals("0")) {
|
|
||||||
String airsBefore = getTextContent("airsbefore_season", node);
|
|
||||||
|
|
||||||
seasonNumber = airsBefore == null || airsBefore.isEmpty() ? null : airsBefore;
|
|
||||||
episodeNumber = "Special";
|
|
||||||
}
|
|
||||||
|
|
||||||
episodes.add(new Episode(seriesName, seasonNumber, episodeNumber, episodeName));
|
episodes.add(new Episode(seriesName, seasonNumber, episodeNumber, episodeName));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue