Browse Source

Fix rare case with import existing shows where shows are not listed due to a corrupt `.nfo` file.

tags/release_0.22.1^2
JackDandy 5 years ago
parent
commit
3d6906d401
  1. 7
      CHANGES.md
  2. 4
      gui/slick/interfaces/default/home_massAddTable.tmpl
  3. 2
      sickbeard/helpers.py

7
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"

4
gui/slick/interfaces/default/home_massAddTable.tmpl

@ -57,7 +57,11 @@
</td>
#if $curDir['existing_info'][2] and $indexer > 0
<td>
#if curDir['existing_info'][1]
<a href="<%= anon_url(sickbeard.TVInfoAPI(indexer).config['show_url'] % curDir['existing_info'][1]) %>" target="_new">$curDir['existing_info'][2]</a>
#else
$curDir['existing_info'][2]
#end if
</td>
#else
<td>?</td>

2
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:

Loading…
Cancel
Save