Commit 336c92d7 authored by Julian Rother's avatar Julian Rother
Browse files

Set video_id for probe jobs

parent 5343837e
......@@ -34,7 +34,7 @@ def insert_video(lectureid,dbfilepath,filepath,fileformatid):
lectureid, dbfilepath, fileformatid,,,, -1, os.stat(filepath).st_size)
query('INSERT INTO sortlog (lecture_id,video_id,path,`when`) VALUES (?,?,?,?)', lectureid, video_id, dbfilepath,
schedule_job('probe', {'path': dbfilepath, 'lecture_id': lectureid, 'import-chapters': True})
schedule_job('probe', {'path': dbfilepath, 'lecture_id': lectureid, 'video_id': video_id, 'import-chapters': True})
def schedule_thumbnail(lectureid, filePath=None):
videos = query('''
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment