Skip to content
Snippets Groups Projects
Commit 07046471 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed remuxing code

parent 6b00abd1
No related branches found
No related tags found
No related merge requests found
......@@ -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']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment