Mbonea commited on
Commit
a5737e1
·
1 Parent(s): 0f248e4

duration is perfect

Browse files
Files changed (1) hide show
  1. App/Generate/database/Model.py +2 -2
App/Generate/database/Model.py CHANGED
@@ -62,7 +62,7 @@ class Project(orm.Model):
62
  )
63
  for scene in project_scenes:
64
  _, file_name = os.path.split(scene.narration_path)
65
- self.duration += scene.narration_duration + 1 ## added one for spaces
66
  self.links.append({"file_name": file_name, "link": scene.narration_link})
67
 
68
  # narration
@@ -71,7 +71,7 @@ class Project(orm.Model):
71
  "type": "audio",
72
  "name": file_name,
73
  "start": self.start,
74
- "end": self.start + scene.narration_duration + 1,
75
  "props": {
76
  # "startFrom": 0,
77
  # "endAt": scene.narration_duration * 30,
 
62
  )
63
  for scene in project_scenes:
64
  _, file_name = os.path.split(scene.narration_path)
65
+ self.duration += scene.narration_duration ## added one for spaces
66
  self.links.append({"file_name": file_name, "link": scene.narration_link})
67
 
68
  # narration
 
71
  "type": "audio",
72
  "name": file_name,
73
  "start": self.start,
74
+ "end": self.start + scene.narration_duration,
75
  "props": {
76
  # "startFrom": 0,
77
  # "endAt": scene.narration_duration * 30,