From eb228f3d473ef834cae913a4daa04808816db623 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 31 Oct 2014 09:07:49 +0000 Subject: [PATCH] * make sure aliasNames is not redundant --- source/net/filebot/web/TMDbClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/web/TMDbClient.java b/source/net/filebot/web/TMDbClient.java index 05d3503f..313e16ff 100644 --- a/source/net/filebot/web/TMDbClient.java +++ b/source/net/filebot/web/TMDbClient.java @@ -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;