From 73b7bcc6ce3634903c54de9b69a01a19dd8c3722 Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 18 Mar 2013 21:56:50 +0100 Subject: [PATCH 1/4] Force dashboard view --- couchpotato/core/plugins/movie/static/list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/movie/static/list.js b/couchpotato/core/plugins/movie/static/list.js index d8c7fa8..5ac210e 100644 --- a/couchpotato/core/plugins/movie/static/list.js +++ b/couchpotato/core/plugins/movie/static/list.js @@ -144,7 +144,7 @@ var MovieList = new Class({ var self = this; var chars = '#ABCDEFGHIJKLMNOPQRSTUVWXYZ'; - self.current_view = self.getSavedView(); + self.current_view = self.getSavedView() || 'details'; self.el.addClass(self.current_view+'_list') self.navigation = new Element('div.alph_nav').adopt( @@ -434,7 +434,7 @@ var MovieList = new Class({ getSavedView: function(){ var self = this; - return Cookie.read(self.options.identifier+'_view') || 'details'; + return Cookie.read(self.options.identifier+'_view'); }, search: function(){ From e694276a8d0f6a813c22ce7f4bf137e7bc008d09 Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 18 Mar 2013 22:02:47 +0100 Subject: [PATCH 2/4] Save view to different cookie so people don't have to reset. --- couchpotato/core/plugins/movie/static/list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/movie/static/list.js b/couchpotato/core/plugins/movie/static/list.js index 5ac210e..3d5545e 100644 --- a/couchpotato/core/plugins/movie/static/list.js +++ b/couchpotato/core/plugins/movie/static/list.js @@ -429,12 +429,12 @@ var MovieList = new Class({ .addClass(new_view+'_list') self.current_view = new_view; - Cookie.write(self.options.identifier+'_view', new_view, {duration: 1000}); + Cookie.write(self.options.identifier+'_view2', new_view, {duration: 1000}); }, getSavedView: function(){ var self = this; - return Cookie.read(self.options.identifier+'_view'); + return Cookie.read(self.options.identifier+'_view2'); }, search: function(){ From f8f22cdef7d3576ada10b7034a3cd5c3c82dab9a Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 19 Mar 2013 00:25:03 +0100 Subject: [PATCH 3/4] Description typo --- couchpotato/static/scripts/page/home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/static/scripts/page/home.js b/couchpotato/static/scripts/page/home.js index e3c1ae0..c1e9116 100644 --- a/couchpotato/static/scripts/page/home.js +++ b/couchpotato/static/scripts/page/home.js @@ -37,7 +37,7 @@ Page.Home = new Class({ 'identifier': 'soon', 'limit': 18, 'title': 'Available soon', - 'description': 'These are being searches for and should be available soon as they will be released on DVD in the next few weeks.', + 'description': 'These are being searched for and should be available soon as they will be released on DVD in the next few weeks.', 'on_empty_element': new Element('div').adopt( new Element('h1', {'text': 'Available soon'}), new Element('span', {'text': 'There are no movies available soon. Add some movies, so you have something to watch later.'}) From e54928720afbb544e49527a20729c9ede259ca75 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 19 Mar 2013 20:24:48 +0100 Subject: [PATCH 4/4] Don't download same quality twice. fix #1519 --- couchpotato/core/plugins/searcher/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/searcher/main.py b/couchpotato/core/plugins/searcher/main.py index 0285917..1f320ea 100644 --- a/couchpotato/core/plugins/searcher/main.py +++ b/couchpotato/core/plugins/searcher/main.py @@ -165,7 +165,7 @@ class Searcher(Plugin): # See if better quality is available for release in movie['releases']: - if release['quality']['order'] < quality_type['quality']['order'] and release['status_id'] not in [available_status.get('id'), ignored_status.get('id')]: + if release['quality']['order'] <= quality_type['quality']['order'] and release['status_id'] not in [available_status.get('id'), ignored_status.get('id')]: has_better_quality += 1 # Don't search for quality lower then already available.