Private GIT

Skip to content
Snippets Groups Projects
Commit f96ed3d4 authored by sharkykh's avatar sharkykh Committed by miigotu
Browse files

Schedule missed episodes (#3335)

* Hotfix unrar on windows. Dont try to download unrar.exe

* Fixes #3327 (Schedule missed episodes)
parent 319c33b6
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,6 @@ class ComingEpisodes(object):
sql_l = []
for show_obj in sickbeard.showList:
next_air_date = show_obj.nextEpisode()
if next_air_date:
sql_l.append(
[
'SELECT DISTINCT {0} '.format(fields_to_select) +
......@@ -82,7 +81,7 @@ class ComingEpisodes(object):
'AND airdate >= ? '
'AND s.indexer_id = e.showid '
'AND e.status IN (' + ','.join(['?'] * 2) + ')',
[show_obj.indexerid, next_air_date, recently, WANTED, UNAIRED]
[show_obj.indexerid, (today, next_air_date)[bool(next_air_date)], recently, WANTED, UNAIRED]
]
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment