mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 06:20:27 -04:00
Group by Movie (rather than MoviePart)
https://www.filebot.net/forums/viewtopic.php?f=5&t=10716
This commit is contained in:
parent
b449bcec3c
commit
13cfca422c
@ -439,7 +439,7 @@ public class AutoDetection {
|
||||
}
|
||||
|
||||
public Group movie(List<Movie> movies) {
|
||||
put(Type.Movie, movies == null || movies.isEmpty() ? null : movies.get(0));
|
||||
put(Type.Movie, movies == null || movies.isEmpty() ? null : new Movie(movies.get(0))); // group by Movie (rather than MoviePart)
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -38,6 +38,14 @@ public class Movie extends SearchResult {
|
||||
this.language = locale == null ? null : locale.getLanguage();
|
||||
}
|
||||
|
||||
public Movie(Movie movie) {
|
||||
super(movie.id, movie.name, movie.aliasNames);
|
||||
this.year = movie.year;
|
||||
this.imdbId = movie.imdbId;
|
||||
this.tmdbId = movie.tmdbId;
|
||||
this.language = movie.language;
|
||||
}
|
||||
|
||||
public int getYear() {
|
||||
return year;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user