diff --git a/sickbeard/searchBacklog.py b/sickbeard/searchBacklog.py index 7ac69b0ae0dfcd33707b04d103e03c81c8d0462e..5f9f8d9a48ce8d3fffd7ffe7c90cf4a483615267 100644 --- a/sickbeard/searchBacklog.py +++ b/sickbeard/searchBacklog.py @@ -144,7 +144,7 @@ class BacklogSearcher: logger.log(u"Seeing if we need anything from {show_name}".format(show_name=show.name), logger.DEBUG) myDB = db.DBConnection() - sqlResults = myDB.select("SELECT status, season, episode FROM tv_episodes WHERE season > 0 AND airdate > ? AND showid = ?", + sqlResults = myDB.select("SELECT status, season, episode FROM tv_episodes WHERE airdate > ? AND showid = ?", [fromDate.toordinal(), show.indexerid]) # check through the list of statuses to see if we want any