Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Roman Karwacik
website
Commits
0818d5cc
Commit
0818d5cc
authored
Dec 14, 2017
by
Julian Rother
Browse files
Fixed bug in insert_video
parent
fea06642
Changes
1
Hide whitespace changes
Inline
Side-by-side
sorter.py
View file @
0818d5cc
...
...
@@ -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
,
auto
visible
,
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
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment