duration is perfect
Browse files
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
|
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
|
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,
|