CourseHub: AJAX video course player (PHP + MySQL + Bootstrap + Plyr)
Scans nested course folders for mp4s, tracks per-user resume position and per-folder progress. SPA frontend with hash routing over a JSON API; range-request streaming via stream.php. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
// CLI library scan (for cron or manual runs): php scan.php
|
||||
// From the browser, use the "Rescan library" button (api/scan.php).
|
||||
require_once __DIR__ . '/includes/functions.php';
|
||||
|
||||
if (PHP_SAPI !== 'cli') {
|
||||
header('Location: index.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
$stats = scanLibrary();
|
||||
echo "Scan complete: {$stats['folders']} folders, {$stats['videos']} videos"
|
||||
. " ({$stats['missing_folders']} folders / {$stats['missing_videos']} videos flagged missing)\n";
|
||||
Reference in New Issue
Block a user