diff --git a/couchpotato/static/scripts/page/wanted.js b/couchpotato/static/scripts/page/wanted.js index 2ce6c14c..3ef10d7a 100644 --- a/couchpotato/static/scripts/page/wanted.js +++ b/couchpotato/static/scripts/page/wanted.js @@ -73,20 +73,23 @@ window.addEvent('domready', function(){ new Element('option', { 'text': alt.title }).inject(self.title_select); - + if(alt['default']) self.title_select.set('value', alt.title); }); Quality.getActiveProfiles().each(function(profile){ + + var profile_id = profile.id ? profile.id : profile.data.id; + new Element('option', { - 'value': profile.id ? profile.id : profile.data.id, + 'value': profile_id, 'text': profile.label ? profile.label : profile.data.label }).inject(self.profile_select); - if(self.movie.profile) - self.profile_select.set('value', profile.id ? profile.id : profile.data.id); + if(self.movie.profile && self.movie.profile.data.id == profile_id) + self.profile_select.set('value', profile_id); }); }