From c99a5cb5356b6b62b297d58d8f53afc2ec8be316 Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 7 Aug 2013 20:06:30 +0200 Subject: [PATCH] Don't autoadd when already in wanted --- couchpotato/core/plugins/movie/static/search.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/movie/static/search.js b/couchpotato/core/plugins/movie/static/search.js index 2b318c10..23b9a3f4 100644 --- a/couchpotato/core/plugins/movie/static/search.js +++ b/couchpotato/core/plugins/movie/static/search.js @@ -389,7 +389,9 @@ Block.Search.Item = new Class({ self.options_el.addClass('set'); - if(categories.length == 0 && self.title_select.getElements('option').length == 1 && profiles.length == 1) + p(self.info.in_wanted, self.info.in_wanted.profile, in_library); + if(categories.length == 0 && self.title_select.getElements('option').length == 1 && profiles.length == 1 && + !(self.info.in_wanted && self.info.in_wanted.profile || in_library)) self.add(); }