More preventative coding for the player and fixed the live-info-v2 API

This commit is contained in:
Albert Santoni 2015-04-29 12:17:44 -04:00
parent c0bd28f6d5
commit c72cdbc19d
2 changed files with 1 additions and 8 deletions

View File

@ -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();

View File

@ -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.