From 0818d5cc11697029c9d4678c2dd12675b3b85ec1 Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Thu, 14 Dec 2017 23:23:12 +0100 Subject: [PATCH] Fixed bug in insert_video --- sorter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sorter.py b/sorter.py index 22f4efc..1f7029b 100644 --- a/sorter.py +++ b/sorter.py @@ -44,7 +44,7 @@ def insert_video(lectureid, dbfilepath, fileformatid, hash="", filesize=-1): (lecture_id, visible, path, video_format, title, comment, internal, file_modified, time_created, time_updated, created_by, hash, file_size) VALUES (?, ?, ?, ?, "", "", "", ?, ?, ?, ?, ?, ?)''', - lectureid, autovisible, dbfilepath, fileformatid, datetime.now(), datetime.now(), datetime.now(), -1, hash, filesize) + lectureid, visible, dbfilepath, fileformatid, datetime.now(), datetime.now(), datetime.now(), -1, hash, filesize) 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, 'video_id': video_id, 'import-chapters': True}) -- GitLab