Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jannik Hellenkamp
website
Commits
07046471
Commit
07046471
authored
Jan 02, 2018
by
Julian Rother
Browse files
Fixed remuxing code
parent
6b00abd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
encoding.py
View file @
07046471
...
...
@@ -17,7 +17,7 @@ def schedule_remux(lectureid=None, videoid=None):
ret
=
None
if
not
lectureid
:
lectureid
=
request
.
values
.
get
(
'lectureid'
)
videoid
=
request
.
values
.
get
(
'videoid'
)
videoid
=
int
(
request
.
values
.
get
(
'videoid'
,
0
)
)
if
not
lectureid
:
lectureid
=
query
(
'SELECT lecture_id FROM videos WHERE id = ?'
,
videoid
)[
0
][
'lecture_id'
]
ret
=
redirect
(
request
.
values
.
get
(
'ref'
,
url_for
(
'jobs_overview'
)))
...
...
@@ -33,7 +33,8 @@ def schedule_remux(lectureid=None, videoid=None):
continue
if
videoid
and
video
[
'id'
]
!=
videoid
:
continue
data
=
{
'path'
:
video
[
'path'
],
'srcpath'
:
video
[
'srcpath'
],
'srchash'
:
video
[
'srchash'
]}
data
=
{
'path'
:
video
[
'path'
],
'srcpath'
:
video
[
'srcpath'
],
'srchash'
:
video
[
'srchash'
],
'video_id'
:
video
[
'id'
]}
fmt
=
json
.
loads
(
video
[
'fmtopts'
])
if
'format'
in
fmt
:
data
[
'format'
]
=
fmt
[
'format'
]
...
...
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