Skip to content
Snippets Groups Projects
Commit 2ae7b0d7 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed last commit

parent 74727405
Branches
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ from server import *
def livestream_thumbnail():
livestreams = query('SELECT streams.lecture_id, streams.handle AS livehandle FROM streams WHERE streams.active')
for v in genlive(livestreams):
schedule_job('thumbnail', {'lectureid': v['lecture_id'], 'path': v['path']})
schedule_job('thumbnail', {'lectureid': str(v['lecture_id']), 'path': v['path']})
@app.route('/internal/streaming/legacy_auth', methods=['GET', 'POST'])
def streamauth():
......
......@@ -63,7 +63,7 @@ def schedule_thumbnail(lectureid=None):
JOIN formats ON (videos.video_format = formats.id)
WHERE videos.lecture_id = ?
ORDER BY formats.prio DESC''', lectureid)
schedule_job('thumbnail', {'lectureid': lectureid, 'path': videos[0]['path']})
schedule_job('thumbnail', {'lectureid': str(lectureid), 'path': videos[0]['path']})
return ret
@job_handler('transcode')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment