mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-11 13:58:16 -05:00
* use given episode number as special number
This commit is contained in:
parent
67e6dcf196
commit
3fd678c996
@ -150,7 +150,8 @@ public class TheTVDBClient extends AbstractEpisodeListProvider {
|
|||||||
seasonNumber = airsBefore;
|
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));
|
specials.add(new Episode(seriesName, seriesStartDate, seasonNumber, null, episodeName, null, specialNumber, airdate));
|
||||||
} else {
|
} else {
|
||||||
// handle as normal episode
|
// handle as normal episode
|
||||||
|
Loading…
Reference in New Issue
Block a user