From 3ae4c13104e489a0d68bdffa38de1be917a732c0 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sat, 9 Aug 2014 11:28:22 +0000 Subject: [PATCH] Code fix --- sickbeard/name_parser/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/name_parser/parser.py b/sickbeard/name_parser/parser.py index 099c5b73..cab8953a 100644 --- a/sickbeard/name_parser/parser.py +++ b/sickbeard/name_parser/parser.py @@ -236,8 +236,6 @@ class NameParser(object): # get quality bestResult.quality = common.Quality.nameQuality(name, bestResult.show.is_anime) - season_number = None - episode_numbers = [] new_episode_numbers = [] new_season_numbers = [] new_absolute_numbers = [] @@ -275,8 +273,10 @@ class NameParser(object): episode_numbers = [int(epObj["episodenumber"])] except sickbeard.indexer_episodenotfound: logger.log(u"Unable to find episode with date " + str(parse_result.air_date) + " for show " + bestResult.show.name + ", skipping", logger.WARNING) + episode_numbers = [] except sickbeard.indexer_error, e: logger.log(u"Unable to contact " + sickbeard.indexerApi(bestResult.show.indexer).name + ": " + ex(e), logger.WARNING + episode_numbers = [] for epNo in episode_numbers: s = season_number