no begin in playlist

This commit is contained in:
jb-alvarado 2019-10-05 16:22:16 +02:00 committed by GitHub
parent 23c2d95c55
commit 4f13283532

View File

@ -44,9 +44,8 @@ if(!empty($_GET['track'])) {
$content = file_get_contents($json_path) or die("Error: Cannot create object"); $content = file_get_contents($json_path) or die("Error: Cannot create object");
$json = json_decode($content, true); $json = json_decode($content, true);
list($hh, $mm, $ss) = explode(":", $json["begin"]);
list($l_hh, $l_mm, $l_ss) = explode(":", $json["length"]); list($l_hh, $l_mm, $l_ss) = explode(":", $json["length"]);
$begin = $hh * 3600 + $mm * 60 + $ss; $begin = $start_time;
$length = $l_hh * 3600 + $l_mm * 60 + $l_ss; $length = $l_hh * 3600 + $l_mm * 60 + $l_ss;
$src_re = array(); $src_re = array();