join media_edls on media during fetch of all media files

This commit is contained in:
Sundog Jones 2024-09-17 09:26:17 -04:00
parent 1b5b6329b4
commit 698dc0e500

2
media.php Normal file → Executable file
View File

@ -41,7 +41,7 @@
}
} else {
// get info about all media files
$query = "SELECT * FROM media ORDER BY id DESC";
$query = "SELECT m.id AS id, m.title, m.description, m.season, m.episode_number, m.duration_secs, m.source_path, me.id AS edl_id, me.edl_name, me.edl_definition FROM media m JOIN media_edls me ON m.id = me.media_id ORDER BY id DESC";
$result = $db->query($query);
if ($result) {
$rows = array();