join media_edls on media during fetch of all media files
This commit is contained in:
parent
1b5b6329b4
commit
698dc0e500
2
media.php
Normal file → Executable file
2
media.php
Normal file → Executable 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();
|
||||
|
Loading…
Reference in New Issue
Block a user