Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Roman Karwacik
website
Commits
ab24a724
Commit
ab24a724
authored
Jul 28, 2018
by
Julian Rother
Browse files
Fixed livestream thumbnails
parent
faef59f2
Changes
1
Show whitespace changes
Inline
Side-by-side
livestreams.py
View file @
ab24a724
...
...
@@ -9,7 +9,7 @@ def livestream_thumbnail():
livestreams
=
query
(
'SELECT streams.lecture_id, streams.handle AS livehandle FROM streams WHERE streams.active'
)
lectures
=
query
(
'SELECT * FROM lectures WHERE stream_job IS NOT NULL'
)
for
v
in
genlive
(
livestreams
)
+
genlive_new
(
lectures
):
schedule_job
(
'thumbnail'
,
{
'src'
:
v
[
'path'
],
'filename'
:
'%i.jpg'
%
v
[
'lecture_id'
]})
schedule_job
(
'thumbnail'
,
{
'src'
:
v
[
'path'
],
'filename'
:
'
l_
%i.jpg'
%
v
[
'lecture_id'
]})
@
app
.
route
(
'/internal/streaming/legacy_auth'
,
methods
=
[
'GET'
,
'POST'
])
@
app
.
route
(
'/internal/streaming/legacy_auth/<server>'
,
methods
=
[
'GET'
,
'POST'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment