mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fix for manual anime searches
This commit is contained in:
parent
6ca979d51b
commit
2c37523ab7
@ -168,17 +168,14 @@ def _getEpisode(show, season=None, episode=None, absolute=None):
|
|||||||
showObj = sickbeard.helpers.findCertainShow(sickbeard.showList, int(show))
|
showObj = sickbeard.helpers.findCertainShow(sickbeard.showList, int(show))
|
||||||
|
|
||||||
if showObj is None:
|
if showObj is None:
|
||||||
return "Show not in show list"
|
return "Invalid show paramaters"
|
||||||
|
|
||||||
if showObj.is_anime and not absolute is None:
|
if absolute:
|
||||||
return "Invalid absolute number parameters"
|
epObj = showObj.getEpisode(absolute=int(absolute))
|
||||||
elif season is None or episode is None:
|
elif season and episode:
|
||||||
return "Invalid season or episode number parameters"
|
|
||||||
|
|
||||||
if showObj.is_anime:
|
|
||||||
epObj = showObj.getEpisode(absolute_number=int(absolute))
|
|
||||||
else:
|
|
||||||
epObj = showObj.getEpisode(int(season), int(episode))
|
epObj = showObj.getEpisode(int(season), int(episode))
|
||||||
|
else:
|
||||||
|
return "Invalid paramaters"
|
||||||
|
|
||||||
if epObj is None:
|
if epObj is None:
|
||||||
return "Episode couldn't be retrieved"
|
return "Episode couldn't be retrieved"
|
||||||
|
Loading…
Reference in New Issue
Block a user