mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-02 08:25:02 -04:00
* make sure aliasNames is not redundant
This commit is contained in:
parent
d8cfabf11e
commit
eb228f3d47
@ -157,7 +157,7 @@ public class TMDbClient implements MovieIdentificationService {
|
||||
if (id.getTmdbId() > 0 || id.getImdbId() > 0) {
|
||||
MovieInfo info = getMovieInfo(id, locale, false);
|
||||
String name = info.getName();
|
||||
String[] aliasNames = info.getOriginalName() == null || info.getOriginalName().isEmpty() ? new String[0] : new String[] { info.getOriginalName() };
|
||||
String[] aliasNames = info.getOriginalName() == null || info.getOriginalName().isEmpty() || info.getOriginalName().equals(name) ? new String[0] : new String[] { info.getOriginalName() };
|
||||
int year = info.getReleased().getYear();
|
||||
int tmdbid = info.getId();
|
||||
int imdbid = info.getImdbId() != null ? info.getImdbId() : -1;
|
||||
|
Loading…
Reference in New Issue
Block a user