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:
parent
aa23531bf6
commit
b8bc247eba
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user