You've already forked my-video-workflow
添加util.flask;video_clip编辑逻辑
This commit is contained in:
@ -17,7 +17,10 @@ class VideoClip(db.Model):
|
||||
|
||||
@property
|
||||
def full_path(self):
|
||||
return os.path.abspath(os.path.join(self.base_path, self.file))
|
||||
if self.base_path is not None and self.base_path != "":
|
||||
return os.path.abspath(os.path.join(self.base_path, self.file))
|
||||
else:
|
||||
return os.path.abspath(self.file)
|
||||
|
||||
def to_json(self):
|
||||
return {
|
||||
@ -26,4 +29,5 @@ class VideoClip(db.Model):
|
||||
"file": self.file,
|
||||
"duration": self.duration,
|
||||
"offset": self.offset,
|
||||
"workflow_id": self.workflow_id,
|
||||
}
|
||||
|
Reference in New Issue
Block a user