There was an error while loading. Please reload this page.
1 parent 191134e commit af302f7Copy full SHA for af302f7
1 file changed
app/Jobs/Video/VideoOptimizeJob.php
@@ -103,13 +103,14 @@ public function handle(): void
103
->withVisibility('public')
104
->save($name);
105
106
- $media->cleanupTemporaryFiles();
107
-
+ $video->duration = $media->getDurationInSeconds();
108
$video->vid_optimized = $name;
109
$video->has_processed = true;
110
$video->status = 2;
111
$video->save();
112
+ $media->cleanupTemporaryFiles();
113
+
114
VideoService::deleteMediaData($video->id);
115
}
116
0 commit comments