From 8ac8150eb39d2e4b16604d0c1298946b31b094ce Mon Sep 17 00:00:00 2001 From: echel0n Date: Thu, 15 May 2014 14:43:45 -0700 Subject: [PATCH] Fixed issues with search results not being snatched when searching shows with custom quality settings. Added option to force a RSS update under Manage searches. Added status of rss updates and daily searches to be displayed at bottom of pages. --- gui/slick/interfaces/default/inc_bottom.tmpl | 2 ++ .../default/manage_manageSearches.tmpl | 9 +++++++ lib/dateutil/zoneinfo/.gitignore | 1 + sickbeard/rssupdater.py | 6 ++++- sickbeard/search.py | 24 +++++++++---------- sickbeard/webserve.py | 14 ++++++++++- 6 files changed, 42 insertions(+), 14 deletions(-) create mode 100644 lib/dateutil/zoneinfo/.gitignore diff --git a/gui/slick/interfaces/default/inc_bottom.tmpl b/gui/slick/interfaces/default/inc_bottom.tmpl index fd44b668..d735b3be 100644 --- a/gui/slick/interfaces/default/inc_bottom.tmpl +++ b/gui/slick/interfaces/default/inc_bottom.tmpl @@ -14,6 +14,8 @@ #set $numDLEpisodes = $myDB.select("SELECT COUNT(*) FROM tv_episodes WHERE status IN ("+",".join([str(x) for x in $Quality.DOWNLOADED + [$ARCHIVED]])+") AND season != 0 and episode != 0 AND airdate <= "+$today+"")[0][0] #set $numEpisodes = $myDB.select("SELECT COUNT(*) FROM tv_episodes WHERE season != 0 and episode != 0 AND (airdate != 1 OR status IN ("+",".join([str(x) for x in ($Quality.DOWNLOADED + $Quality.SNATCHED + $Quality.SNATCHED_PROPER) + [$ARCHIVED]])+")) AND airdate <= "+$today+" AND status != "+str($IGNORED)+"")[0][0] $numShows shows ($numGoodShows active) | $numDLEpisodes/$numEpisodes episodes downloaded | +RSS Update: <%=str(sickbeard.updateRSSScheduler.timeLeft()).split('.')[0]%> | +Daily Search: <%=str(sickbeard.dailySearchScheduler.timeLeft()).split('.')[0]%> | Backlog: $sbdatetime.sbdatetime.sbfdate($sickbeard.backlogSearchScheduler.nextRun())