diff --git a/sorter.py b/sorter.py index 675161ad42c9814694c981c60a147e99d90cc638..e100c240cbfc21964ee88257bdfc95e0b15e51c0 100644 --- a/sorter.py +++ b/sorter.py @@ -59,7 +59,7 @@ def insert_video(lectureid, dbfilepath, fileformatid, hash="", filesize=-1, dura video_id = modify('''INSERT INTO videos_data (lecture_id, visible, path, video_format, title, comment, internal, file_modified, time_created, time_updated, created_by, hash, file_size, duration, source) VALUES - (?, ?, ?, ?, "", "", "", ?, ?, ?, ?, ?, ?, ?)''', + (?, ?, ?, ?, "", "", "", ?, ?, ?, ?, ?, ?, ?, ?)''', lectureid, visible, dbfilepath, fileformatid, datetime.now(), datetime.now(), datetime.now(), -1, hash, filesize, duration, sourceid) if not sourceid: query('INSERT INTO sortlog (lecture_id,video_id,path,`when`) VALUES (?,?,?,?)', lectureid, video_id, dbfilepath, datetime.now())