From 36feeba3803db18f43fd3d9d06c45e7a8a825169 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 15 Sep 2014 17:36:25 +0000 Subject: [PATCH] * improve unique() detection and assume that generally any movie object has tmdbid available --- source/net/filebot/web/Movie.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/web/Movie.java b/source/net/filebot/web/Movie.java index 5c9575f8..6d67bca4 100644 --- a/source/net/filebot/web/Movie.java +++ b/source/net/filebot/web/Movie.java @@ -104,7 +104,7 @@ public class Movie extends SearchResult { @Override public int hashCode() { - return year; + return tmdbId > 0 ? tmdbId : imdbId > 0 ? imdbId : year; } @Override