From 2b2e2d484df650b925846a55a291386e037c193a Mon Sep 17 00:00:00 2001 From: Nils Vogels Date: Fri, 2 May 2014 11:59:13 +0200 Subject: [PATCH] Update SQL to match TVRage edition --- sickbeard/providers/speedcd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/providers/speedcd.py b/sickbeard/providers/speedcd.py index c5c1abd3..46c28bf6 100644 --- a/sickbeard/providers/speedcd.py +++ b/sickbeard/providers/speedcd.py @@ -224,7 +224,7 @@ class SpeedCDProvider(generic.TorrentProvider): results = [] sqlResults = db.DBConnection().select('SELECT s.show_name, e.showid, e.season, e.episode, e.status, e.airdate FROM tv_episodes AS e' + - ' INNER JOIN tv_shows AS s ON (e.showid = s.tvdb_id)' + + ' INNER JOIN tv_shows AS s ON (e.showid = s.indexer_id)' + ' WHERE e.airdate >= ' + str(search_date.toordinal()) + ' AND (e.status IN (' + ','.join([str(x) for x in Quality.DOWNLOADED]) + ')' + ' OR (e.status IN (' + ','.join([str(x) for x in Quality.SNATCHED]) + ')))'