Recorder obeys status setting
This commit is contained in:
parent
188e8ae17d
commit
5e6d1ea2b2
|
@ -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">
|
||||
|
|
|
@ -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"])
|
||||
|
|
Loading…
Reference in New Issue