diff --git a/sorter.py b/sorter.py index 88ea9f4ba1e735a8a07876f675f59dc7bb3c810c..cb98e3bc49e9be14407cf945318ddd533213c12d 100644 --- a/sorter.py +++ b/sorter.py @@ -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('''