diff --git a/livestreams.py b/livestreams.py index 3ccbe1de4a49a6dd06955faedc60f1ce9ccd8731..626eea2d6f54f099b371ba1342e4fb64922df8a7 100644 --- a/livestreams.py +++ b/livestreams.py @@ -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(): diff --git a/sorter.py b/sorter.py index 86b51538bfef41474334d01e535fcb3863425eb4..df0be85482dce83e60c7ae0d695ac5609498665c 100644 --- a/sorter.py +++ b/sorter.py @@ -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')