From 49c81f520f4bfd34ecae203ea8536783b397a0a9 Mon Sep 17 00:00:00 2001
From: Julian Rother <julianr@fsmpi.rwth-aachen.de>
Date: Mon, 23 Jul 2018 16:05:15 +0200
Subject: [PATCH] Fixed live source thumbnails

---
 livestreams.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/livestreams.py b/livestreams.py
index 36efddd..8421d41 100644
--- a/livestreams.py
+++ b/livestreams.py
@@ -119,7 +119,7 @@ def streamdrop(id):
 def live_source_thumbnail():
 	sources = query('SELECT * FROM live_sources WHERE clientid IS NOT NULL')
 	for source in sources:
-		schedule_job('thumbnail', {'src': 'rtmp://%s/src/%i'%(source['server'], source['id']), 'filename': 's_%i.jpg'%source['id']})
+		schedule_job('thumbnail', {'srcurl': 'rtmp://%s/src/%i'%(source['server'], source['id']), 'filename': 's_%i.jpg'%source['id']})
 
 @app.route('/internal/streaming/auth/<server>', methods=['GET', 'POST'])
 def streamauth(server):
-- 
GitLab