2015-05-25, 15:15
Hello,
Sorry for my bad language.
I'm reed readmi
$xbmcJson->NAMESPACE->COMMAND(array(PARAM1 => VALUE1, PARAM2 => VALUE2, etc..));
I'm write
But I'm writeNo error. What write
Sorry for my bad language.
I'm reed readmi
$xbmcJson->NAMESPACE->COMMAND(array(PARAM1 => VALUE1, PARAM2 => VALUE2, etc..));
I'm write
PHP Code:
if (!empty($catch)) {
//msg("error", "Kodi Connect Error", $catch, '');
echo 'Kodi Connect Error';
} else {
try {
$limits = array("start" => 0, "end" => 5);
$sort = array("order" => "descending", "method" => "dateadded");
$propertis = array("properties" => "artist", "duration", "album", "track");
$TopSongs = $xbmcJson->AudioLibrary->GetSongs(
array(
"limits" => $limits,
"sort" => $sort,
"properties" => "artist"
)
);
} catch (Exception $ex) {
echo $ex->getMessage();
}
echo "<pre>";
print_r($TopSongs->songs);
echo "</pre>";
// Notice: Invalid params.(-32602)
}
PHP Code:
$TopSongs = $xbmcJson->AudioLibrary->GetSongs(
array(
"limits" => $limits,
"sort" => $sort,
)
);
PHP Code:
$propertis = array("properties" => "artist", "duration", "album", "track");