From 6c3f34fd8dba409c195b26a666a0a7f30c6870bc Mon Sep 17 00:00:00 2001 From: echel0n Date: Tue, 24 Jun 2014 17:37:03 -0700 Subject: [PATCH 1/2] Possible fix for EpisodeNotFoundByAbsoluteNumberException errors --- sickbeard/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/helpers.py b/sickbeard/helpers.py index 7bb73983..05bef4bc 100644 --- a/sickbeard/helpers.py +++ b/sickbeard/helpers.py @@ -702,7 +702,7 @@ def get_absolute_number_from_season_and_episode(show, season, episode): def get_all_episodes_from_absolute_number(show, indexer_id, absolute_numbers): if len(absolute_numbers) == 0: - raise EpisodeNotFoundByAbsoluteNumberException() + raise EpisodeNotFoundByAbsoluteNumberException episodes = [] season = None @@ -718,7 +718,7 @@ def get_all_episodes_from_absolute_number(show, indexer_id, absolute_numbers): if ep: episodes.append(ep.episode) else: - raise EpisodeNotFoundByAbsoluteNumberException() + raise EpisodeNotFoundByAbsoluteNumberException season = ep.season # this will always take the last found seson so eps that cross the season border are not handeled well return (season, episodes) From 7d2f7c82330f57e1da00006d7bda06f1e23b4473 Mon Sep 17 00:00:00 2001 From: echel0n Date: Tue, 24 Jun 2014 17:40:38 -0700 Subject: [PATCH 2/2] Fixed ImportError: cannot import name OrderedDict --- sickbeard/name_parser/parser.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sickbeard/name_parser/parser.py b/sickbeard/name_parser/parser.py index fc62fa65..f8e8872b 100644 --- a/sickbeard/name_parser/parser.py +++ b/sickbeard/name_parser/parser.py @@ -15,10 +15,8 @@ # # You should have received a copy of the GNU General Public License # along with SickRage. If not, see . -from collections import OrderedDict import re -import time import datetime import os.path import threading @@ -27,7 +25,6 @@ import sickbeard from sickbeard import logger, helpers, scene_numbering, common from dateutil import parser -from sickbeard.common import cpu_presets nameparser_lock = threading.Lock() @@ -140,7 +137,7 @@ class NameParser(object): elif self.showObj and not self.showObj.is_anime and not self.showObj.is_sports: regexMode = self.NORMAL_REGEX - self.compiled_regexes = OrderedDict() + self.compiled_regexes = {} self._compile_regexes(regexMode) matches = []