From 08714357ddee1c51712ef5a313df5192318c6d6e Mon Sep 17 00:00:00 2001 From: echel0n Date: Wed, 30 Apr 2014 05:18:20 -0700 Subject: [PATCH] Fixed missing code. --- sickbeard/name_parser/parser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sickbeard/name_parser/parser.py b/sickbeard/name_parser/parser.py index fddae778..03ea2304 100644 --- a/sickbeard/name_parser/parser.py +++ b/sickbeard/name_parser/parser.py @@ -339,7 +339,7 @@ class ParseResult(object): return to_return.encode('utf-8') def convert(self): - if self.air_by_date: return # scene numbering does not apply to air-by-date + if self.air_by_date: return self # scene numbering does not apply to air-by-date if self.season_number == None: return self # can't work without a season if len(self.episode_numbers) == 0: return self # need at least one episode @@ -371,6 +371,8 @@ class ParseResult(object): self.episode_numbers = new_episode_numbers self.season_number = new_season_numbers[0] + return self + def _is_air_by_date(self): if self.season_number == None and len(self.episode_numbers) == 0 and self.air_date: return True