Commit 238f111e authored by Andreas Valder's avatar Andreas Valder
Browse files

fixed genlive import (i hope...)

parent dabada05
from server import *
from sorter import schedule_thumbnail
def genlive(streams):
for stream in streams:
......@@ -18,5 +17,5 @@ def livestream_thumbnail():
WHERE AND (? OR streams.visible)
''', ismod())
for v in genlive(livestreams):
......@@ -321,6 +321,15 @@ def tagid(s):
r = r + c
return r
def genlive(streams):
for stream in streams:
stream['visible'] = True
stream['downloadable'] = False
stream['path'] = 'pub/hls/%s.m3u8'%stream['livehandle']
stream['file_size'] = 0
return streams
@register_navbar('Home', icon='home')
def index():
......@@ -381,8 +390,6 @@ def courses():
groupedby = 'semester'
return render_template('courses.html', courses=courses, groupedby=groupedby)
from livestreams import genlive
@handle_errors('courses', 'Diese Veranstaltung existiert nicht!', 404, IndexError)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment