From 00b8b7723d0632ce8b1652d526b54205fdcd3855 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 5 Dec 2015 12:09:23 +0800 Subject: [PATCH] Add option to create season search exceptions from editShow page --- CHANGES.md | 1 + gui/slick/interfaces/default/editShow.tmpl | 16 ++++++++++--- gui/slick/js/editShow.js | 15 +++++++++--- sickbeard/classes.py | 28 +++++++++++++++++++++- sickbeard/scene_exceptions.py | 26 ++++++++++---------- sickbeard/webserve.py | 13 +++++----- 6 files changed, 72 insertions(+), 27 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index ac2524a2..a8ddce64 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -95,6 +95,7 @@ * Add notice for users with Python 2.7.8 or below to update to latest Python * Change position of parsed qualities to the start of log lines * Change to always display branch and commit hash on 'Help & Info' page +* Add option to create season search exceptions from editShow page [develop changelog] * Enable Alpha Ratio again now that the secure login page over https is fixed diff --git a/gui/slick/interfaces/default/editShow.tmpl b/gui/slick/interfaces/default/editShow.tmpl index 413fb1d7..e73fdc70 100644 --- a/gui/slick/interfaces/default/editShow.tmpl +++ b/gui/slick/interfaces/default/editShow.tmpl @@ -69,15 +69,25 @@ Scene exception +

add alternative release names found on search providers for $show.name

Exceptions list (multi-selectable)

- +#for $cur_exception_season in $show.exceptions: + #for $cur_exception in $show.exceptions[$cur_exception_season]: + + #end for #end for

this list overrides the original name
to search, it doesn't append to it

diff --git a/gui/slick/js/editShow.js b/gui/slick/js/editShow.js index d88b2486..9c6cc74b 100644 --- a/gui/slick/js/editShow.js +++ b/gui/slick/js/editShow.js @@ -53,6 +53,7 @@ $(document).ready(function () { $('#addSceneName').click(function () { var scene_ex = $('#SceneName').val(); + var scene_ex_season = $('#SceneNameSeason').val(); var option = $('