From 3d6906d4019f974ac2fd29575840c57504c4e30e Mon Sep 17 00:00:00 2001 From: JackDandy Date: Thu, 24 Sep 2020 13:00:23 +0100 Subject: [PATCH] Fix rare case with import existing shows where shows are not listed due to a corrupt `.nfo` file. --- CHANGES.md | 7 ++++++- gui/slick/interfaces/default/home_massAddTable.tmpl | 4 ++++ sickbeard/helpers.py | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index abe70af..f7acb76 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.22.0 (2020-09-19 20:50:00 UTC) +### 0.22.1 (2020-09-24 13:00:00 UTC) + +* Fix rare case with import existing shows where shows are not listed due to a corrupt `.nfo` file + + +### 0.22.0 (2020-09-19 20:50:00 UTC) * Add menu Shows/"Metacritic Cards" * Add menu Shows/"TV Calendar Cards" diff --git a/gui/slick/interfaces/default/home_massAddTable.tmpl b/gui/slick/interfaces/default/home_massAddTable.tmpl index 39675e9..992e769 100644 --- a/gui/slick/interfaces/default/home_massAddTable.tmpl +++ b/gui/slick/interfaces/default/home_massAddTable.tmpl @@ -57,7 +57,11 @@ #if $curDir['existing_info'][2] and $indexer > 0 + #if curDir['existing_info'][1] $curDir['existing_info'][2] + #else + $curDir['existing_info'][2] + #end if #else ? diff --git a/sickbeard/helpers.py b/sickbeard/helpers.py index ed0d1b9..e6442e1 100644 --- a/sickbeard/helpers.py +++ b/sickbeard/helpers.py @@ -296,7 +296,7 @@ def search_infosrc_for_show_id(reg_show_name, tvid=None, prodid=None, ui=None): show_names = [re.sub('[. -]', ' ', reg_show_name)] # Query Indexers for each search term and build the list of results - for _tvid in [sickbeard.TVInfoAPI().sources if not tvid else int(tvid)] or []: + for _tvid in (sickbeard.TVInfoAPI().sources if not tvid else [int(tvid)]) or []: # Query Indexers for each search term and build the list of results tvinfo_config = sickbeard.TVInfoAPI(_tvid).api_params.copy() if ui is not None: