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

Fix for air-by-date shows

This commit is contained in:
echel0n 2014-04-27 17:16:09 -07:00
parent 71ec47ae6b
commit 896295b090

View File

@ -246,6 +246,12 @@ class GenericProvider:
self._checkAuth() self._checkAuth()
for ep_obj in ep_objs: for ep_obj in ep_objs:
# get scene season/episode info
scene_season = ep_obj.scene_season
scene_episode = ep_obj.scene_episode
if show.air_by_date:
scene_episode = ep_obj.airdate
if not seasonSearch: if not seasonSearch:
logger.log(u'Searching "%s" for "%s" as "%s"' logger.log(u'Searching "%s" for "%s" as "%s"'
% (self.name, ep_obj.prettyName(), ep_obj.scene_prettyName())) % (self.name, ep_obj.prettyName(), ep_obj.scene_prettyName()))
@ -262,10 +268,10 @@ class GenericProvider:
return results return results
if seasonSearch: if seasonSearch:
for curString in self._get_season_search_strings(show, ep_obj.scene_season, ep_obj.scene_episode, show.air_by_date): for curString in self._get_season_search_strings(show, scene_season, scene_episode, show.air_by_date):
itemList += self._doSearch(curString, show=show) itemList += self._doSearch(curString, show=show)
else: else:
for curString in self._get_episode_search_strings(show, ep_obj.scene_season, ep_obj.scene_episode, show.air_by_date): for curString in self._get_episode_search_strings(show, scene_season, scene_episode, show.air_by_date):
itemList += self._doSearch(curString, show=show) itemList += self._doSearch(curString, show=show)
for item in itemList: for item in itemList: