-
Notifications
You must be signed in to change notification settings - Fork 6
/
CL_Get_Stream_JSON.php
54 lines (44 loc) · 2.75 KB
/
CL_Get_Stream_JSON.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
54
<?php
/*
┌─────────────────────────────────────────────────────────────┐
| For More Modules Or Updates Stay Connected to Kodi dot AL |
└─────────────────────────────────────────────────────────────┘
┌───────────┬─────────────────────────────────────────────────┐
│ Product │ Youtube MP4 Stream Extractor │
│ Version │ v2.2.1-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 │ 21 December 2020 │
│ Modified │ 00:0000:0000 │
└─────────────────────────────────────────────────────────────┘
*/
// NOTE: THIS API CONTAIN THIRD PARTY FUNCTIONS
// HOSTED APIS https://paidcodes.albdroid.al/Youtube_APIS/Downloader/
// JSON API https://paidcodes.albdroid.al/Youtube_APIS/Downloader/get_stream.php
// 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/Downloader/";
$PHP_FILE = "get_stream.php?url=";
$YT_URL = "https://www.youtube.com/watch?v=F_fzZduMd7g";
$API_CALL = $API_HOST. $PHP_FILE . $YT_URL;
$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;
?>