Update Saqel Platform: 2026-09-02 08:47:33

This commit is contained in:
Hamza-Ayed
2026-09-02 08:47:33 +03:00
parent ff9fdbb24e
commit a9b1819e9a
2 changed files with 4 additions and 2 deletions
@@ -287,7 +287,8 @@ class CurriculumController
if (function_exists('fastcgi_finish_request')) fastcgi_finish_request();
elseif (ob_get_level()) { ob_end_flush(); flush(); }
$scriptPath = realpath(__DIR__ . '/../../scripts/video_upload_worker.php');
exec('php ' . escapeshellarg($scriptPath) . ' ' . escapeshellarg($taskId) . ' > /dev/null 2>&1 &');
$logPath = $processingDir . '/' . $taskId . '.log';
exec('php ' . escapeshellarg($scriptPath) . ' ' . escapeshellarg($taskId) . ' >> ' . escapeshellarg($logPath) . ' 2>&1 &');
return;
} catch (\Throwable $e) {
+2 -1
View File
@@ -497,10 +497,11 @@ class VideoController
$lessonTitle = $lesson['title'];
$versionsRaw = Database::select(
"SELECT l.id, l.course_id, l.title, l.storage_type, l.video_uuid, l.hls_url, l.ai_video_url, l.bunny_video_id,
c.teacher_id, u.full_name as teacher_name, u.school_name
c.teacher_id, u.full_name as teacher_name, s.name as school_name
FROM lessons l
LEFT JOIN courses c ON l.course_id = c.id
LEFT JOIN teachers u ON c.teacher_id = u.id
LEFT JOIN schools s ON c.school_id = s.id
WHERE l.title = ? AND l.encoding_status = 'ready'",
[$lessonTitle]
);