Skip to content

Commit

Permalink
Adjust sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
medariox committed Mar 4, 2016
1 parent a130e74 commit 9aa8b87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sickbeard/subtitles.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@ def dhm(td):
"e.subtitles_lastsearch AS lastsearch, e.location, (? - e.airdate) as age "
"FROM tv_episodes AS e INNER JOIN tv_shows AS s "
"ON (e.showid = s.indexer_id) "
"WHERE s.subtitles = 1 AND age {} 30 AND e.subtitles NOT LIKE ? "
"AND e.status LIKE '%4' ORDER BY lastsearch ASC LIMIT {}".format
"WHERE s.subtitles = 1 AND (e.status LIKE '%4' OR e.status LIKE '%6') AND e.season > 0 "
"AND e.location != '' AND age {} 30 AND e.subtitles NOT LIKE ? ORDER BY lastsearch ASC LIMIT {}".format
(args[0], args[1]), [datetime.datetime.now().toordinal(), wanted_languages(True)]
)

Expand Down

0 comments on commit 9aa8b87

Please sign in to comment.