mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 08:53:37 +00:00
Possible fix for EpisodeNotFoundByAbsoluteNumberException errors
This commit is contained in:
parent
7fff3e0d63
commit
6c3f34fd8d
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue