1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -05:00

Fix for shows that are air-by-date

This commit is contained in:
echel0n 2014-04-27 03:40:50 -07:00
parent 5772de9eec
commit 0ae27fa6e6

View File

@ -265,10 +265,10 @@ class GenericProvider:
abd = True
if seasonSearch:
for curString in self._get_season_search_strings(show, ep_obj.scene_season, ep_obj.scene_episode, abd=abd):
for curString in self._get_season_search_strings(show, ep_obj.scene_season, ep_obj.scene_episode if not abd else ep_obj._airdate, abd=abd):
itemList += self._doSearch(curString)
else:
for curString in self._get_episode_search_strings(show, ep_obj.scene_season, ep_obj.scene_episode, abd=abd):
for curString in self._get_episode_search_strings(show, ep_obj.scene_season, ep_obj.scene_episode if not abd else ep_obj._airdate, abd=abd):
itemList += self._doSearch(curString, show=show)
for item in itemList: