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