Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
2ae7b0d7
Commit
2ae7b0d7
authored
Jan 02, 2018
by
Julian Rother
Browse files
Fixed last commit
parent
74727405
Changes
2
Hide whitespace changes
Inline
Side-by-side
livestreams.py
View file @
2ae7b0d7
...
...
@@ -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
():
...
...
sorter.py
View file @
2ae7b0d7
...
...
@@ -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'
)
...
...
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