-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
28 lines (23 loc) · 954 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
// © Chittaranjan Maharana [ Telegram ]
// usage index.php?c=0-9-129
// Don't Change Any Thing !
$input = $_GET["c"];
if (!$input){
exit("<h3>Channel ID not found <br><br>You Entered Worng ID or Not Entered ID Here</h3><br><h4> Use Correct Format ➸ <code>https://zee.avipatilpro.repl.co/?c=CHANNEL_ID_HERE</code> <br><br><br> <h4> ➤ Created by <a href='https://github.com/chittaranjan2020'>Chittaranjan Maharana</a></h4> ");
}
$channel_meta = JsonfromURI("https://catalogapi.zee5.com/v1/channel/${input}");
$stream_url = $channel_meta->stream_url_hls;
$tok_json = JsonfromURI("https://useraction.zee5.com/token/live.php");
$video_token = $tok_json->video_token;
$m3u8 = $stream_url.$video_token;
echo $m3u8;
// header("Location: $m3u8"); --> For Direct Play
function JsonfromURI($url) {
$resp = file_get_contents($url);
return json_decode($resp);
header("Location: $stream_url.$video_token;
echo $m3u8;");
exit();
};
?>