2014-03-10 01:18:05 -04:00
#import sickbeard
#import datetime
#from sickbeard import db , sbdatetime
#from sickbeard . common import *
</div>
</div>
<div class="footer clearfix">
<div class="meta" style="float:left;font-size: 12px;">
#set $ myDB = $ db . DBConnection ( )
#set $ today = str ( $ datetime . date . today ( ) . toordinal ( ) )
2014-06-30 03:15:29 -04:00
#if $ sickbeard . showList :
2014-03-10 01:18:05 -04:00
#set $ numShows = len ( $ sickbeard . showList )
2014-07-07 08:55:42 -04:00
#set $ numGoodShows = len ( [ x for x in $ sickbeard . showList if x . paused == 0 and x . status != " Ended " ] )
2014-06-30 03:15:29 -04:00
#else
#set $ numShows = 0
#set $ numGoodShows = 0
#end if
2014-03-10 01:18:05 -04:00
#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 ]
2014-05-11 08:49:07 -04:00
<b> $ numShows shows</b> ( $ numGoodShows active) | <b> $ numDLEpisodes / $ numEpisodes </b> episodes downloaded |
2014-06-07 08:36:50 -04:00
<b>Search</b>: <%=str(sickbeard.dailySearchScheduler.timeLeft()).split('.')[0]%> |
2014-06-29 11:49:47 -04:00
<b>Backlog</b>: <%=str(sickbeard.backlogSearchScheduler.timeLeft()).split('.')[0]%>
2014-03-10 01:18:05 -04:00
</div>
<ul style="float:right;">
<li><a href=" $ sbRoot /manage/manageSearches/forceVersionCheck"><img src=" $ sbRoot /images/menu/update16.png" alt="" width="16" height="16" />Force Version Check</a></li>
<li><a href=" $ sbRoot /home/restart/?pid= $ sbPID " class="confirm"><img src=" $ sbRoot /images/menu/restart16.png" alt="" width="16" height="16" />Restart</a></li>
<li><a href=" $ sbRoot /home/shutdown/?pid= $ sbPID " class="confirm"><img src=" $ sbRoot /images/menu/shutdown16.png" alt="" width="16" height="16" />Shutdown</a></li>
</ul>
</div>
</body>
</html>