-
Notifications
You must be signed in to change notification settings - Fork 6
/
CL_Live_Stream.php
53 lines (43 loc) · 2.66 KB
/
CL_Live_Stream.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/*
┌─────────────────────────────────────────────────────────────┐
| For More Modules Or Updates Stay Connected to Kodi dot AL |
└─────────────────────────────────────────────────────────────┘
┌───────────┬─────────────────────────────────────────────────┐
│ Product │ Youtube HLS Stream Extractor │
│ Version │ v2.2.2-DEV Multi │
│ Provider │ https://www.youtube.com │
│ Support │ M3U8/VLC/KODI/SMART TV/XTream Codes/Web Players │
│ Licence │ MIT │
│ Author │ Olsion Bakiaj │
│ Email │ [email protected] │
│ Author │ Endrit Pano │
│ Email │ [email protected] │
│ Website │ https://kodi.al │
│ Facebook │ /albdroid.official/ │
│ Github │ github.com/SxtBox/ │
│ Created │ 25 December 2020 │
│ Modified │ 00:0000:0000 │
└─────────────────────────────────────────────────────────────┘
*/
// NOTE THIS IS MY OLD YT CODE BUT IS REFACTORED WITH NEW FUNCTIONS
// HOSTED APIS https://paidcodes.albdroid.al/Youtube_APIS/Live_Stream/
// RULES AL: Ky API Eshte Vetem Per Demostrim, Nese Ju e Keqperdorni Do Te Humbisni Komunikimin Me Serverat Tane
// RULES EN: This API is For Demonstration Only, If You Misuse It You Will Lose Communication With Our Servers
error_reporting(0);
set_time_limit(0);
date_default_timezone_set("Europe/Tirane");
/*
Generator @ Kodi dot AL Dev Tools
Code For PHP 5/7
*/
$API_HOST = "https://paidcodes.albdroid.al/Youtube_APIS/Live_Stream/";
$API_PATH = "";
$PHP_FILE = ""; // OR index.php
$API_CALL = $API_HOST. $API_PATH . $PHP_FILE;
$DATA = file_get_contents($API_CALL);
$GET_URL = file_get_contents($API_CALL.$_SERVER['QUERY_STRING']);
header('Access-Control-Allow-Origin: *');
header('Content-type: application/json');
echo $DATA;
?>