left join media_edls on media during fetch of all media files
This commit is contained in:
parent
698dc0e500
commit
892bc8bbf0
@ -41,7 +41,7 @@
|
||||
}
|
||||
} else {
|
||||
// get info about all media files
|
||||
$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";
|
||||
$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 LEFT JOIN media_edls me ON m.id = me.media_id ORDER BY id DESC";
|
||||
$result = $db->query($query);
|
||||
if ($result) {
|
||||
$rows = array();
|
||||
|
Loading…
Reference in New Issue
Block a user