Update sxg.php

pull/35/head
肥羊 3 years ago committed by GitHub
parent 648c38b5e9
commit b8223077f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      PHP/sxg.php

@ -3,9 +3,9 @@ date_default_timezone_set("Asia/Shanghai");
$channel = empty($_GET['id']) ? "emdy4k_8000" : trim($_GET['id']);
$array = explode("_", $channel);
if (isset($array[1])) {
$stream = "http://蜀小果可用前置IP/livehkkp.chinamcache.com/live/8ne5i_sccn,{$array[0]}_hls_pull_{$array[1]}K/";
$stream = "http://[240e:944:6::22]/live2.rxip.sc96655.com/live/8ne5i_sccn,{$array[0]}_hls_pull_{$array[1]}K/";
} else {
$stream = "http://蜀小果可用前置IP/livehkkp.chinamcache.com/live/8ne5i_sccn,{$array[0]}_hls_pull_4000K/";
$stream = "http://[240e:944:6::22]/live2.rxip.sc96655.com/live/8ne5i_sccn,{$array[0]}_hls_pull_4000K/";
}
$timestamp = intval((time() - 60) / 6);
$current = "#EXTM3U" . "\r\n";
@ -18,4 +18,4 @@ for ($i = 0; $i < 6; $i++) {
$timestamp = $timestamp + 1;
}
header("Content-Disposition: attachment; filename=index.m3u8");
echo $current;
echo $current;

Loading…
Cancel
Save