mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-05 19:08:02 -05:00
Fixed missing code.
This commit is contained in:
parent
319ac2602f
commit
08714357dd
@ -339,7 +339,7 @@ class ParseResult(object):
|
|||||||
return to_return.encode('utf-8')
|
return to_return.encode('utf-8')
|
||||||
|
|
||||||
def convert(self):
|
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 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
|
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.episode_numbers = new_episode_numbers
|
||||||
self.season_number = new_season_numbers[0]
|
self.season_number = new_season_numbers[0]
|
||||||
|
|
||||||
|
return self
|
||||||
|
|
||||||
def _is_air_by_date(self):
|
def _is_air_by_date(self):
|
||||||
if self.season_number == None and len(self.episode_numbers) == 0 and self.air_date:
|
if self.season_number == None and len(self.episode_numbers) == 0 and self.air_date:
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user