From 1fcdd218379ed1a9fdff974e0a7341413d8f53f7 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 16 Mar 2015 05:51:03 +0000 Subject: [PATCH] * {di} binding now always returns the duplicate indenity index 1..n and will never unwind --- source/net/filebot/format/MediaBindingBean.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index db806739..57979bd4 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -788,8 +788,7 @@ public class MediaBindingBean { duplicates.add(it); } } - int di = identityIndexOf(duplicates, getInfoObject()); - return di == 0 ? null : di; + return 1 + identityIndexOf(duplicates, getInfoObject()); } @Define("self")