livestreams.py 240 Bytes
Newer Older
1
2
3
4
from server import *

@sched_func(30)
def livestream_thumbnail():
Andreas Valder's avatar
Andreas Valder committed
5
	livestreams = query('SELECT streams.lecture_id FROM streams WHERE streams.active')
Andreas Valder's avatar
Andreas Valder committed
6

7
	for v in genlive(livestreams):
Andreas Valder's avatar
Andreas Valder committed
8
		sorter.schedule_thumbnail(v['lecture_id'], v['path'])
9