From bbf9491943df4af5dc43d46166f0e8591670831e Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 10 Mar 2014 19:32:02 -0700 Subject: [PATCH] Code cleanup and bugfixes --- gui/slick/interfaces/default/comingEpisodes.tmpl | 16 ++++++++++++---- gui/slick/interfaces/default/displayShow.tmpl | 10 +++++++++- gui/slick/interfaces/default/editShow.tmpl | 6 +++--- gui/slick/interfaces/default/home_addShows.tmpl | 2 +- .../interfaces/default/home_massAddTable.tmpl | 4 ++-- gui/slick/interfaces/default/home_newShow.tmpl | 12 ++++++++---- gui/slick/js/newShow.js | 10 +++++----- sickbeard/image_cache.py | 12 ++++++------ sickbeard/metadata/generic.py | 8 ++++---- sickbeard/name_cache.py | 4 ++-- sickbeard/name_parser/parser.py | 4 ++-- sickbeard/scene_exceptions.py | 2 +- sickbeard/scene_numbering.py | 4 ++-- sickbeard/showUpdater.py | 2 +- sickbeard/tv.py | 2 +- sickbeard/tvcache.py | 2 +- sickbeard/webserve.py | 12 ++++++------ 17 files changed, 66 insertions(+), 46 deletions(-) diff --git a/gui/slick/interfaces/default/comingEpisodes.tmpl b/gui/slick/interfaces/default/comingEpisodes.tmpl index e3418b44..31ef984c 100644 --- a/gui/slick/interfaces/default/comingEpisodes.tmpl +++ b/gui/slick/interfaces/default/comingEpisodes.tmpl @@ -116,7 +116,7 @@ - + #for $cur_result in $sql_results: @@ -167,7 +167,11 @@ [imdb] #end if - + #if 'Tvdb' in $cur_result["indexer"]: + + #else + + #end if @@ -302,8 +306,12 @@ #if $cur_result["imdb_id"]: [imdb] - #end if - [tvdb] + #end if + #if "Tvdb" in $cur_result["indexer"]: + [tvdb] + #else + [tvdb] + #end if [search] diff --git a/gui/slick/interfaces/default/displayShow.tmpl b/gui/slick/interfaces/default/displayShow.tmpl index 5d6a49a9..6d9925c5 100644 --- a/gui/slick/interfaces/default/displayShow.tmpl +++ b/gui/slick/interfaces/default/displayShow.tmpl @@ -50,13 +50,21 @@ - $show.genre[1:-1].replace('|',' | ') #end if + #if "Tvdb" in $show.indexer [tvdb] + #else + [tvdb] + #end if #else ($show.imdb_info['year']) - $show.imdb_info['runtimes'] min - $show.imdb_info['genres'].replace('|',' | ') [imdb] + #if "Tvdb" in $show.indexer [tvdb] + #else + [tvdb] + #end if #end if @@ -249,7 +257,7 @@ " - title="Change the value here if scene numbering differs from tvdb episode numbering" + title="Change the value here if scene numbering differs from the indexer episode numbering" #if $dfltEpNumbering: value="" #else diff --git a/gui/slick/interfaces/default/editShow.tmpl b/gui/slick/interfaces/default/editShow.tmpl index 1062f9a4..6c673720 100644 --- a/gui/slick/interfaces/default/editShow.tmpl +++ b/gui/slick/interfaces/default/editShow.tmpl @@ -22,7 +22,7 @@
AirdateShowNext EpNext Ep NameNetworkQualityIMDbtvDBSearch
AirdateShowNext EpNext Ep NameNetworkQualityIMDbIndexerSearch
[tvdb][tvdb][tvdb] [search]