adding fields to allow for multiple playlists scheduled in a show
This commit is contained in:
parent
daf37fa548
commit
9854834b26
7 changed files with 37 additions and 7 deletions
|
@ -6,6 +6,7 @@ require_once("Schedule.php");
|
|||
|
||||
global $g_metadata_xml_to_db_mapping;
|
||||
$g_metadata_xml_to_db_mapping = array(
|
||||
"ls:type" => "ftype",
|
||||
"dc:format" => "format",
|
||||
"ls:bitrate" => "bit_rate",
|
||||
"ls:samplerate" => "sample_rate",
|
||||
|
@ -1763,6 +1764,10 @@ class StoredFile {
|
|||
if($key === "dc:title"){
|
||||
$plSelect .= "name AS ".$val.", ";
|
||||
$fileSelect .= $val.", ";
|
||||
}
|
||||
else if ($key === "ls:type"){
|
||||
$plSelect .= "'playlist' AS ".$val.", ";
|
||||
$fileSelect .= $val.", ";
|
||||
}
|
||||
else if ($key === "dc:creator"){
|
||||
$plSelect .= "creator AS ".$val.", ";
|
||||
|
@ -1789,13 +1794,13 @@ class StoredFile {
|
|||
$selector = "SELECT *";
|
||||
}
|
||||
|
||||
$from = " FROM ((".$plSelect."PL.id, 'playlist' AS ftype
|
||||
$from = " FROM ((".$plSelect."PL.id
|
||||
FROM ".$CC_CONFIG["playListTable"]." AS PL
|
||||
LEFT JOIN ".$CC_CONFIG['playListTimeView']." PLT ON PL.id = PLT.id)
|
||||
|
||||
UNION
|
||||
|
||||
(".$fileSelect."id, ftype FROM ".$CC_CONFIG["filesTable"]." AS FILES)) AS RESULTS ";
|
||||
(".$fileSelect."id FROM ".$CC_CONFIG["filesTable"]." AS FILES)) AS RESULTS ";
|
||||
|
||||
$sql = $selector." ".$from;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue