Commit e210a8fb authored by echel0n's avatar echel0n

Refactored post-processing to properly handle specials.

Fixed issues with post-processing when version is none type.
parent 67acc5d9
...@@ -701,7 +701,7 @@ class PostProcessor(object): ...@@ -701,7 +701,7 @@ class PostProcessor(object):
show_id = cur_show_id show_id = cur_show_id
if cur_season: if cur_season is not None:
season = cur_season season = cur_season
if len(cur_episodes): if len(cur_episodes):
...@@ -717,7 +717,7 @@ class PostProcessor(object): ...@@ -717,7 +717,7 @@ class PostProcessor(object):
if cur_release_group is not None: if cur_release_group is not None:
release_group = cur_release_group release_group = cur_release_group
if all([show_id, season, len(episodes) > 0, quality, version]): if all([show_id, season is not None, len(episodes) > 0, quality]):
break break
return show_id, season, episodes, quality, version, release_group return show_id, season, episodes, quality, version, release_group
...@@ -929,8 +929,8 @@ class PostProcessor(object): ...@@ -929,8 +929,8 @@ class PostProcessor(object):
if not show_object: if not show_object:
self._log("This show isn't in your list, you need to add it to SiCKRAGE before post-processing an episode") self._log("This show isn't in your list, you need to add it to SiCKRAGE before post-processing an episode")
raise EpisodePostProcessingFailedException() raise EpisodePostProcessingFailedException()
elif not len(episodes): elif not all([season is not None, len(episodes)]):
self._log("Not enough information to determine what episode this is. Quitting post-processing") self._log("Not enough information to determine what season/episode this is. Quitting post-processing")
return False return False
# retrieve/create the corresponding TVEpisode objects # retrieve/create the corresponding TVEpisode objects
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment