Include {absolute} episode number in special Episode objects
@see https://www.filebot.net/forums/viewtopic.php?f=5&t=4666
This commit is contained in:
parent
52bb296ee4
commit
a7791c653d
|
@ -207,7 +207,7 @@ public class TheTVDBClient extends AbstractEpisodeListProvider implements Artwor
|
||||||
episodes.add(new Episode(info.getName(), seasonNumber, episodeNumber, episodeName, absoluteNumber, null, airdate, id, new SeriesInfo(info)));
|
episodes.add(new Episode(info.getName(), seasonNumber, episodeNumber, episodeName, absoluteNumber, null, airdate, id, new SeriesInfo(info)));
|
||||||
} else {
|
} else {
|
||||||
// handle as special episode
|
// handle as special episode
|
||||||
specials.add(new Episode(info.getName(), null, null, episodeName, null, episodeNumber, airdate, id, new SeriesInfo(info)));
|
specials.add(new Episode(info.getName(), null, null, episodeName, absoluteNumber, episodeNumber, airdate, id, new SeriesInfo(info)));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,7 +177,7 @@ public class TheTVDBClientV1 extends AbstractEpisodeListProvider implements Artw
|
||||||
|
|
||||||
// use given episode number as special number or count specials by ourselves
|
// use given episode number as special number or count specials by ourselves
|
||||||
Integer specialNumber = (episodeNumber != null) ? episodeNumber : filterBySeason(specials, seasonNumber).size() + 1;
|
Integer specialNumber = (episodeNumber != null) ? episodeNumber : filterBySeason(specials, seasonNumber).size() + 1;
|
||||||
specials.add(new Episode(seriesInfo.getName(), seasonNumber, null, episodeName, null, specialNumber, airdate, id, new SeriesInfo(seriesInfo)));
|
specials.add(new Episode(seriesInfo.getName(), seasonNumber, null, episodeName, absoluteNumber, specialNumber, airdate, id, new SeriesInfo(seriesInfo)));
|
||||||
} else {
|
} else {
|
||||||
// adjust for absolute numbering if possible
|
// adjust for absolute numbering if possible
|
||||||
if (sortOrder == SortOrder.Absolute) {
|
if (sortOrder == SortOrder.Absolute) {
|
||||||
|
|
Loading…
Reference in New Issue