diff --git a/livestreams.py b/livestreams.py index 966539eb59894293f8d20bae35b25dbe76bd2da5..10c1606d2237ef3596632229b66d7398b3df6d34 100644 --- a/livestreams.py +++ b/livestreams.py @@ -156,7 +156,7 @@ def streamauth(server): return 'Ok', 200 for lecture in query('SELECT * FROM lectures WHERE stream_job IS NOT NULL'): settings = json.loads(lecture['stream_settings']) - if source['id'] in [settings.get('source1'), settings.get('source2')]: + if str(source['id']) in [str(settings.get('source1')), str(settings.get('source2'))]: cancel_job(lecture['stream_job']) return 'Ok', 200 return 'Bad request', 400