More preventative coding for the player and fixed the live-info-v2 API
This commit is contained in:
parent
c0bd28f6d5
commit
c72cdbc19d
|
@ -64,13 +64,6 @@ SQL;
|
|||
{
|
||||
//Everything in this function must be done in UTC. You will get a swift kick in the pants if you mess that up.
|
||||
|
||||
if (!is_int($p_prev) || !is_int($p_next)) {
|
||||
//must enter integers to specify ranges
|
||||
Logging::info("Invalid range parameters: $p_prev or $p_next");
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
// when timeEnd is unspecified, return to the default behaviour - set a range of 48 hours from current time
|
||||
if (!$utcTimeEnd) {
|
||||
$end = new DateTime();
|
||||
|
|
|
@ -239,7 +239,7 @@
|
|||
|
||||
// variables for updating the player's metadata
|
||||
var time_to_next_track_starts = 0;
|
||||
var metadataTimer;
|
||||
var metadataTimer = null;
|
||||
|
||||
// Fetches the streams metadata from the Airtime live-info API
|
||||
// and attaches it to the player UI.
|
||||
|
|
Loading…
Reference in New Issue