* use given episode number as special number

This commit is contained in:
Reinhard Pointner 2011-10-23 14:09:41 +00:00
parent 67e6dcf196
commit 3fd678c996

View File

@ -150,7 +150,8 @@ public class TheTVDBClient extends AbstractEpisodeListProvider {
seasonNumber = airsBefore;
}
Integer specialNumber = filterBySeason(specials, seasonNumber).size() + 1;
// use given episode number as special number or count specials by ourselves
Integer specialNumber = (episodeNumber != null) ? episodeNumber : filterBySeason(specials, seasonNumber).size() + 1;
specials.add(new Episode(seriesName, seriesStartDate, seasonNumber, null, episodeName, null, specialNumber, airdate));
} else {
// handle as normal episode