From 0ae27fa6e6dd9b2162919c7c4fabdb4151c6cce9 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 27 Apr 2014 03:40:50 -0700 Subject: [PATCH] Fix for shows that are air-by-date --- sickbeard/providers/generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/providers/generic.py b/sickbeard/providers/generic.py index 6a9b341f..cf24ea8b 100644 --- a/sickbeard/providers/generic.py +++ b/sickbeard/providers/generic.py @@ -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: