Commit 3fdcba1d authored by Julian Rother's avatar Julian Rother
Browse files

Differentiated error messages on player page

parent eb3fc3d2
......@@ -451,6 +451,11 @@ def lecture(id, course=None, courseid=None):
perms = query('SELECT perm.* FROM perm WHERE ((NOT perm.deleted) AND (perm.lecture_id = ? OR perm.course_id = ?))',
lecture['id'], lecture['course_id'])
if not videos:
if lecture['live'] and lecture['time'] > and lecture['time']-timedelta(hours=20) <
flash('Der Livestream beginnt um '+human_time(lecture['time'])+' Uhr.')
elif lecture['time'] >
flash('Diese Vorlesung hat noch nicht stattgefunden!')
flash('Zu dieser Vorlesung wurden noch keine Videos veröffentlicht!')
courses = query('SELECT * FROM courses WHERE id = ? AND (? OR visible)', lecture['course_id'], ismod())
if not courses:
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