more edl work

This commit is contained in:
Sundog Jones 2024-09-17 09:14:27 -04:00
parent 649e881b4b
commit 1b5b6329b4

View File

@ -9,7 +9,7 @@ $_REQUEST = json_decode($jsonBody, true);
if (isset($_REQUEST['media_id']) && $_REQUEST['media_id'] !== "") {
error_log(print_r($_REQUEST, true));
$id = intval($_REQUEST['media_id']);
$query = $db->prepare("SELECT * FROM media m JOIN media_edls me ON m.id = me.media_id WHERE m.id = :id");
$query = $db->prepare("SELECT m.*, me.id AS edl_id, me.media_id AS media_id, me.edl_name, me.edl_definition FROM media m JOIN media_edls me ON m.id = me.media_id WHERE m.id = :id");
$query->bindValue(':id', $id);
$result = $query->execute();
$row = $result->fetchArray(SQLITE3_ASSOC);