From 9756ff46e9305c993c87888267d5523ad0ec963d Mon Sep 17 00:00:00 2001 From: JackDandy Date: Thu, 14 Jan 2016 21:11:24 +0000 Subject: [PATCH] Fix issue with "Add Existing Shows" on new installations. --- CHANGES.md | 7 ++++++- sickbeard/webserve.py | 12 +++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index fa223611..d5d6a767 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.11.1 (2016-01-12 20:00:00 UTC) +### 0.11.2 (2016-01-14 21:10:00 UTC) + +* Fix issue with "Add Existing Shows" on new installations + + +### 0.11.1 (2016-01-12 20:00:00 UTC) * Fix handling non-numeric IMDb popular ratings diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index e6e5d942..27e9d6b6 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -2878,16 +2878,14 @@ class NewHomeAddShows(Home): if not extra_show: return (None, None, None, None) split_vals = extra_show.split('|') - if len(split_vals) < 4: - indexer = split_vals[0] - show_dir = split_vals[1] - return (indexer, show_dir, None, None) - indexer = split_vals[0] + indexer = helpers.tryInt(split_vals[0], 1) show_dir = split_vals[1] + if len(split_vals) < 4: + return indexer, show_dir, None, None indexer_id = split_vals[2] show_name = '|'.join(split_vals[3:]) - return (indexer, show_dir, indexer_id, show_name) + return indexer, show_dir, indexer_id, show_name def addExistingShows(self, shows_to_add=None, promptForSettings=None, **kwargs): """ @@ -2923,7 +2921,7 @@ class NewHomeAddShows(Home): if not show_dir or not indexer_id or not show_name: continue - indexer_id_given.append((int(indexer), show_dir, int(indexer_id), show_name)) + indexer_id_given.append((indexer, show_dir, int(indexer_id), show_name)) # if they want me to prompt for settings then I will just carry on to the newShow page if promptForSettings and shows_to_add: