From e1ee01579dcc82cd013238c601f97dc304c0c4fe Mon Sep 17 00:00:00 2001 From: echel0n Date: Thu, 29 May 2014 06:27:05 -0700 Subject: [PATCH] Fixed issues with TVDB retrieving banners and posters. Fixed unicode issues with Indexer API's Fixed issues with scene numbering. Fixed issues with black and white lists for anime shows when editing a show. --- gui/slick/interfaces/default/editShow.tmpl | 60 ++++++++++++++- lib/tvdb_api/tvdb_api.py | 88 ++++++++++------------ lib/tvrage_api/tvrage_api.py | 35 ++++----- sickbeard/scene_numbering.py | 2 +- sickbeard/show_queue.py | 11 ++- sickbeard/tv.py | 7 +- 6 files changed, 127 insertions(+), 76 deletions(-) diff --git a/gui/slick/interfaces/default/editShow.tmpl b/gui/slick/interfaces/default/editShow.tmpl index 22c5a72a..c9c90fd9 100644 --- a/gui/slick/interfaces/default/editShow.tmpl +++ b/gui/slick/interfaces/default/editShow.tmpl @@ -3,6 +3,7 @@ #from sickbeard import common #from sickbeard import exceptions #from sickbeard import scene_exceptions +#from sickbeard.blackandwhitelist import * #set global $title="Edit " + $show.name #set global $header=$show.name @@ -170,6 +171,7 @@ Realease Groups:
+
@@ -198,13 +200,26 @@ Realease Groups: \$('#submit').click(function(){ all_exceptions = [] - + \$("#exceptions_list option").each ( function() { all_exceptions.push( \$(this).val() ); }); \$("#exceptions_list").val(all_exceptions); - + + var realvalues = []; + + \$('#white option').each(function(i, selected) { + realvalues[i] = \$(selected).val(); + }); + \$("#whitelist").val(realvalues.join(",")); + + realvalues = []; + \$('#black option').each(function(i, selected) { + realvalues[i] = \$(selected).val(); + }); + \$("#blacklist").val(realvalues.join(",")); + }); \$('#addSceneName').click(function() { @@ -247,8 +262,45 @@ Realease Groups: \$("#SceneException").show(); } - \$(this).toggle_SceneException(); - + \$(this).toggle_SceneException(); + + \$('#removeW').click(function() { + return !\$('#white option:selected').remove().appendTo('#pool'); + }); + \$('#addW').click(function() { + return !\$('#pool option:selected').remove().appendTo('#white'); + }); + \$('#addB').click(function() { + return !\$('#pool option:selected').remove().appendTo('#black'); + }); + \$('#removeP').click(function() { + return !\$('#pool option:selected').remove(); + }); + \$('#removeB').click(function() { + return !\$('#black option:selected').remove().appendTo('#pool'); + }); + + \$('#addToWhite').click(function() { + var group = \$('#addToPoolText').attr("value") + if(group == "") + return + \$('#addToPoolText').attr("value", "") + var option = \$("