From ba2a44b1d1e74b0584719964a12e3539f5ce63fa Mon Sep 17 00:00:00 2001 From: echel0n Date: Sat, 31 May 2014 06:47:27 -0700 Subject: [PATCH] Fix for searches of anime shows with absolute numbering --- sickbeard/name_parser/parser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sickbeard/name_parser/parser.py b/sickbeard/name_parser/parser.py index 12aad199..a1d9cf1e 100644 --- a/sickbeard/name_parser/parser.py +++ b/sickbeard/name_parser/parser.py @@ -466,10 +466,13 @@ class ParseResult(object): if self.show.is_anime and len(self.ab_episode_numbers): for epAbsNo in self.ab_episode_numbers: a = scene_numbering.get_indexer_absolute_numbering(self.show.indexerid, self.show.indexer, epAbsNo) + (s, e) = helpers.get_all_episodes_from_absolute_number(self.show, None, a) new_absolute_numbers.append(a) + new_episode_numbers.append(e) + new_season_numbers.append(s) - if self.season_number and len(self.episode_numbers): + elif self.season_number and len(self.episode_numbers): for epNo in self.episode_numbers: (s, e) = scene_numbering.get_indexer_numbering(self.show.indexerid, self.show.indexer, self.season_number,