1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-02 08:25:02 -04:00

* consider both "airsafter_season", "airsbefore_season" as season value for season-less special episodes

This commit is contained in:
Reinhard Pointner 2015-01-08 19:23:56 +00:00
parent aa23531bf6
commit b8bc247eba

View File

@ -172,9 +172,12 @@ public class TheTVDBClient extends AbstractEpisodeListProvider {
if (seasonNumber == null || seasonNumber == 0) {
// handle as special episode
Integer airsBefore = getInteger(getTextContent("airsbefore_season", node));
if (airsBefore != null) {
seasonNumber = airsBefore;
for (String specialSeasonTag : new String[] { "airsafter_season", "airsbefore_season" }) {
Integer specialSeason = getInteger(getTextContent(specialSeasonTag, node));
if (specialSeason != null && specialSeason != 0) {
seasonNumber = specialSeason;
break;
}
}
// use given episode number as special number or count specials by ourselves