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

Set video_id for probe jobs

parent 5343837e
Branches
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ def insert_video(lectureid,dbfilepath,filepath,fileformatid):
lectureid, dbfilepath, fileformatid, datetime.now(), datetime.now(), datetime.now(), -1, os.stat(filepath).st_size)
query('INSERT INTO sortlog (lecture_id,video_id,path,`when`) VALUES (?,?,?,?)', lectureid, video_id, dbfilepath, datetime.now())
schedule_thumbnail(lectureid)
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('''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment