1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fixed missing code.

This commit is contained in:
echel0n 2014-04-30 05:18:20 -07:00
parent 319ac2602f
commit 08714357dd

View File

@ -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