Commit edab945a authored by Alyx's avatar Alyx
Browse files

Update live.php

parent 42ff68d3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
<?php
$key = $_GET["s"];
htmlentities($key);
$url = 'https://trichrome.tv/_/' . $_GET["s"] . '.m3u8';

header('Cache-Control: no-cache');
if (!preg_match("/^[a-zA-Z0-9]+$/", $key)) {
    header('HTTP/1.1 400 Bad Request');
    die('Bad Request');
}

$key = htmlentities($key);
$url = 'https://trichrome.tv/_/' . $key . '.m3u8';

//    <title>alyx.tv — <?=htmlentities($key);</title>
//            hls.loadSource('');