Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jannik Hellenkamp
website
Commits
336c92d7
Commit
336c92d7
authored
7 years ago
by
Julian Rother
Browse files
Options
Downloads
Patches
Plain Diff
Set video_id for probe jobs
parent
5343837e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sorter.py
+1
-1
1 addition, 1 deletion
sorter.py
with
1 addition
and
1 deletion
sorter.py
+
1
−
1
View file @
336c92d7
...
...
@@ -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
(
'''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment