From 53eb406817c46245e7b3deabaab60ea5db746672 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 9 Aug 2015 11:12:49 +0800 Subject: [PATCH 1/2] Fix saving default show list group on add new show options page --- CHANGES.md | 1 + gui/slick/js/addShowOptions.js | 5 +++-- sickbeard/__init__.py | 2 +- sickbeard/webserve.py | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 9d97ec53..4b2469e5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,7 @@ * Change to only refresh scene exception data for shows that need it * Fix small cosmetic issue to correctly display "full backlog" date * Add search crawler exclusions +* Fix saving default show list group on add new show options page ### 0.10.0 (2015-08-06 11:05:00 UTC) diff --git a/gui/slick/js/addShowOptions.js b/gui/slick/js/addShowOptions.js index a11b91e0..207e1c81 100644 --- a/gui/slick/js/addShowOptions.js +++ b/gui/slick/js/addShowOptions.js @@ -19,7 +19,8 @@ $(document).ready(function(){ default_flatten_folders: $('#flatten_folders').prop('checked'), default_scene: $('#scene').prop('checked'), default_subtitles: $('#subtitles').prop('checked'), - default_anime: $('#anime').prop('checked') + default_anime: $('#anime').prop('checked'), + default_tag: $('#tag').val() }); new PNotify({ @@ -32,7 +33,7 @@ $(document).ready(function(){ }); $('#statusSelect, #qualityPreset, #anyQualities, #bestQualities, #wanted_begin, #wanted_latest,' - + ' #flatten_folders, #scene, #subtitles, #anime').change(function() { + + ' #flatten_folders, #scene, #subtitles, #anime, #tag').change(function() { $('#saveDefaultsButton').attr('disabled', false); }); diff --git a/sickbeard/__init__.py b/sickbeard/__init__.py index 419bd95a..9adf0637 100755 --- a/sickbeard/__init__.py +++ b/sickbeard/__init__.py @@ -1792,7 +1792,7 @@ def save_config(): new_config['GUI']['poster_sortdir'] = POSTER_SORTDIR new_config['GUI']['show_tags'] = ','.join(SHOW_TAGS) new_config['GUI']['showlist_tagview'] = SHOWLIST_TAGVIEW - new_config['GUI']['default_tag'] = DEFAULT_SHOW_TAG + new_config['GUI']['default_show_tag'] = DEFAULT_SHOW_TAG new_config['Subtitles'] = {} new_config['Subtitles']['use_subtitles'] = int(USE_SUBTITLES) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 8fe99512..76fd3c35 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -3438,7 +3438,7 @@ class ConfigGeneral(Config): def saveAddShowDefaults(self, default_status, any_qualities='', best_qualities='', default_wanted_begin=None, default_wanted_latest=None, default_flatten_folders=False, default_scene=False, - default_subtitles=False, default_anime=False): + default_subtitles=False, default_anime=False, default_tag=''): any_qualities = ([], any_qualities.split(','))[any(any_qualities)] best_qualities = ([], best_qualities.split(','))[any(best_qualities)] @@ -3451,6 +3451,7 @@ class ConfigGeneral(Config): sickbeard.SCENE_DEFAULT = config.checkbox_to_value(default_scene) sickbeard.SUBTITLES_DEFAULT = config.checkbox_to_value(default_subtitles) sickbeard.ANIME_DEFAULT = config.checkbox_to_value(default_anime) + sickbeard.DEFAULT_SHOW_TAG = default_tag sickbeard.save_config() From 20ec75aea3c4660c324f6c237688ff70504178d7 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 10 Aug 2015 06:36:46 +0800 Subject: [PATCH 2/2] Remove legacy anime split home option from anime settings tab (new option located in general/interface tab) --- CHANGES.md | 1 + gui/slick/interfaces/default/config_anime.tmpl | 10 ---------- sickbeard/__init__.py | 4 +--- sickbeard/webserve.py | 3 +-- 4 files changed, 3 insertions(+), 15 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 4b2469e5..201255d4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ * Fix small cosmetic issue to correctly display "full backlog" date * Add search crawler exclusions * Fix saving default show list group on add new show options page +* Remove legacy anime split home option from anime settings tab (new option located in general/interface tab) ### 0.10.0 (2015-08-06 11:05:00 UTC) diff --git a/gui/slick/interfaces/default/config_anime.tmpl b/gui/slick/interfaces/default/config_anime.tmpl index c7babfc6..109f6f41 100644 --- a/gui/slick/interfaces/default/config_anime.tmpl +++ b/gui/slick/interfaces/default/config_anime.tmpl @@ -36,16 +36,6 @@
-
- -
-