1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-21 23:38:50 -05:00

Set special number explicitely

This commit is contained in:
Reinhard Pointner 2019-06-04 10:02:26 +07:00
parent 2b5e2a0785
commit b02128b2bd
2 changed files with 8 additions and 3 deletions

View File

@ -144,8 +144,12 @@ public class Episode implements Serializable {
return new Episode(getSeriesName(), season, episode, getTitle(), getAbsolute(), getSpecial(), getAirdate(), getId(), getSeriesInfo());
}
public Episode derive(String seriesName, Integer season, Integer episode, Integer absolute) {
return new Episode(seriesName, season, episode, getTitle(), absolute, getSpecial(), getAirdate(), getId(), getSeriesInfo());
public Episode derive(Integer season, Integer episode, Integer absolute, Integer special) {
return new Episode(getSeriesName(), season, episode, getTitle(), absolute, special, getAirdate(), getId(), getSeriesInfo());
}
public Episode derive(String seriesName, Integer season, Integer episode, Integer absolute, Integer special) {
return new Episode(seriesName, season, episode, getTitle(), absolute, special, getAirdate(), getId(), getSeriesInfo());
}
@Override

View File

@ -71,8 +71,9 @@ public enum XEM {
Integer e = getInteger(mappedNumbers, "episode");
Integer a = getInteger(mappedNumbers, "absolute");
Integer special = null;
return episode.derive(mappedSeriesName, mappedSeason, e, a);
return episode.derive(mappedSeriesName, mappedSeason, e, a, special);
}).collect(toList());
if (mappedEpisode.size() == 1) {