Recorder obeys status setting

This commit is contained in:
dave 2014-08-26 16:40:54 -07:00
parent 188e8ae17d
commit 5e6d1ea2b2
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@
</div>
</div>
<div class="col-sm-1">
<strong>Schedule</strong>
<strong>Status</strong>
</div>
<div class="col-sm-2">
<div class="btn-group btn-group-status">

View File

@ -43,7 +43,7 @@ class recordTick:
days = ["m", "t", "w", "r", "f", "sa", "su"]
day = days[datetime.datetime.now().weekday()]
startTimes = self.db.execute('SELECT * FROM "times" where "starthour"=? AND "startmin"=? AND "'+day+'"=1', (now.hour, now.minute))
startTimes = self.db.execute('SELECT * FROM "times" JOIN "streams" ON "streams"."id" = "times"."streamid" where "starthour"=? AND "startmin"=? AND "'+day+'"=1 AND "status"=0', (now.hour, now.minute))
for startTime in startTimes:
# Start each downloader
self.startStream(startTime["streamid"])