Skip to content

Commit b8ed24b

Browse files
authored
v1.1
1 parent d26fddc commit b8ed24b

3 files changed

Lines changed: 518 additions & 0 deletions

File tree

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
<?php
2+
3+
/*
4+
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
5+
| NOTE FOR SOME MOTHERFUCKERS |
6+
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
7+
|────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
8+
| DISA MOTER QIRA I NDRYSHOJNE EMRIN OSE VALUES KETYRE SCRIPTAVE EDHE I SHPERNDAJNE NE FORUME TE NDRYSME EDHE HIQEN SI AUTOR |
9+
| KETA SCRIPTA JANE KRIJUAR NGA ALBDROID.AL EDHE JANE FREE PER TE GJITHE! |
10+
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
11+
|────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
12+
| SOME MOTHERS FUCKERS CHANGING NAME OR VALUES OF SCRIPT AND SHARE IN DIFFERENT FORUMS ALSO SAYS CREATED BY ME |
13+
| THESE SCRITS ARE CREATED BY ALBDROID.AL AND ARE FREE FOR EVERYONE! |
14+
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
15+
┌────────────────────────────────────────────────────────────┐
16+
| For More Modules Or Updates Stay Connected to Kodi dot AL |
17+
└────────────────────────────────────────────────────────────┘
18+
┌───────────┬────────────────────────────────────────────────┐
19+
│ Product │ TRT TURK Live Stream Extractor │
20+
│ Version │ v1.1 │
21+
│ Provider │ http://www.trt.net.tr │
22+
│ Support │ M3U8/VLC/KODI/SMART TV/Xream Codes Panel ETC │
23+
│ Licence │ MIT │
24+
│ Author │ Olsion Bakiaj │
25+
│ Email │ TRC4@USA.COM │
26+
│ Author │ Endrit Pano │
27+
│ Email │ INFO@ALBDROID.AL │
28+
│ Website │ https://kodi.al │
29+
│ Facebook │ /albdroid.official/ │
30+
│ Created │ Monday, May 11, 2020 │
31+
│ Modified │ Tuesday, May 12, 2020 │
32+
└────────────────────────────────────────────────────────────┘
33+
[x] To Get Live Stream Required Full Link From trt.net.tr
34+
Streams Formats: Auto Get [M3U8]
35+
*/
36+
37+
define('sxt',TRUE);
38+
error_reporting(0);
39+
set_time_limit(0);
40+
date_default_timezone_set("Europe/Tirane");
41+
42+
// DISA NGA KETO JANE ME Cloudflare FIREWALL
43+
if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === 'off') {
44+
$protocol = 'http://';
45+
} else {
46+
$protocol = 'https://';
47+
}
48+
$ROOT_URL = $protocol . $_SERVER['SERVER_NAME'] . dirname($_SERVER['PHP_SELF']) . "/";
49+
$PHP_PATH = $protocol . ($_SERVER['SERVER_NAME']) . ($_SERVER['PHP_SELF']) . "";
50+
$id = $_GET['stream'];
51+
header("Content-Type: application/json");
52+
header("Access-Control-Allow-Origin: *");
53+
if(!$id) die("
54+
┌────────────────────────────────────────────────────────────┐
55+
| For More Modules Or Updates Stay Connected to Kodi dot AL |
56+
└────────────────────────────────────────────────────────────┘
57+
┌───────────┬────────────────────────────────────────────────┐
58+
│ Product │ TRT TURK Live Stream Extractor │
59+
│ Version │ v1.1 │
60+
│ Provider │ http://www.trt.net.tr │
61+
│ Support │ M3U8/VLC/KODI/SMART TV/Xream Codes Panel ETC │
62+
│ Licence │ MIT │
63+
│ Author │ Olsion Bakiaj │
64+
│ Email │ TRC4@USA.COM │
65+
│ Author │ Endrit Pano │
66+
│ Email │ INFO@ALBDROID.AL │
67+
│ Website │ https://kodi.al │
68+
│ Facebook │ /albdroid.official/ │
69+
│ Created │ Monday, May 11, 2020 │
70+
│ Modified │ Tuesday, May 12, 2020 │
71+
└────────────────────────────────────────────────────────────┘
72+
73+
┌────────────────────────────────────────────────────────────┐
74+
| LISTA E KANALEVE / CHANNELS LIST FOR KODI |
75+
└────────────────────────────────────────────────────────────┘
76+
┌────────────────────────────────────────────────────────────
77+
| TRT1 => $PHP_PATH?stream=trt1
78+
└────────────────────────────────────────────────────────────
79+
┌────────────────────────────────────────────────────────────
80+
| TRT2 => $PHP_PATH?stream=trt2
81+
└────────────────────────────────────────────────────────────
82+
┌────────────────────────────────────────────────────────────
83+
| TRT WORLD => $PHP_PATH?stream=trtworld
84+
└────────────────────────────────────────────────────────────
85+
┌────────────────────────────────────────────────────────────
86+
| TRT HABER => $PHP_PATH?stream=trthaber
87+
└────────────────────────────────────────────────────────────
88+
┌────────────────────────────────────────────────────────────
89+
| TRT SPOR => $PHP_PATH?stream=trtspor
90+
└────────────────────────────────────────────────────────────
91+
| TRT SPOR2 => $PHP_PATH?stream=trtspor2
92+
└────────────────────────────────────────────────────────────
93+
┌────────────────────────────────────────────────────────────
94+
| TRT BELGESEL => $PHP_PATH?stream=trtbelgesel
95+
└────────────────────────────────────────────────────────────
96+
┌────────────────────────────────────────────────────────────
97+
| TRT COCUK => $PHP_PATH?stream=trtcocuk
98+
└────────────────────────────────────────────────────────────
99+
┌────────────────────────────────────────────────────────────
100+
| TRT AVAZ => $PHP_PATH?stream=trtavaz
101+
└────────────────────────────────────────────────────────────
102+
┌────────────────────────────────────────────────────────────
103+
| TRT MUZIK => $PHP_PATH?stream=trtmuzik
104+
└────────────────────────────────────────────────────────────
105+
┌────────────────────────────────────────────────────────────
106+
| TRTTURK => $PHP_PATH?stream=trtturk
107+
└────────────────────────────────────────────────────────────
108+
┌────────────────────────────────────────────────────────────
109+
| TRT KURDI => $PHP_PATH?stream=trt6
110+
└────────────────────────────────────────────────────────────
111+
┌────────────────────────────────────────────────────────────
112+
| TRT ARAPCA => $PHP_PATH?stream=trtarapca
113+
└────────────────────────────────────────────────────────────
114+
┌────────────────────────────────────────────────────────────
115+
| TRT 3 TBMM => $PHP_PATH?stream=t-trt3tbmmtv
116+
└────────────────────────────────────────────────────────────
117+
"
118+
);
119+
120+
$STREAM_URL = file_get_contents("http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=$id");
121+
$b64_regex = '/dcm1\("([^"]+)/';
122+
preg_match_all($b64_regex, $STREAM_URL , $match, PREG_PATTERN_ORDER, 0);
123+
$b64_decode = base64_decode(trim($match[1][0]));
124+
125+
preg_match_all("/title>(.*\w)</",
126+
$STREAM_URL,
127+
$title_content,
128+
PREG_SET_ORDER
129+
);
130+
131+
foreach ($title_content as $titulli)
132+
{
133+
$stream_title = ($titulli[1]);
134+
}
135+
// QIFSHA ALFABETIN E ARIXHINJVE
136+
$replace_titles = str_replace(
137+
array("ç", "Ç", "ğ", "Ğ", "ı", "İ", "ö", "Ö", "ş", "Ş", "ü", "Ü", "&amp;", "quot;", "&amp;", " &amp; ", "& ", "&#039;", " - Canli Dinle - TRT", " - Canli Izle - TRT"),
138+
array("c", "C", "g", "G", "i", "I", "o", "O", "s", "S", "u", "U",""," "," ", " ", " ", " ", "", ""),
139+
($stream_title)
140+
);
141+
142+
preg_match_all("/.*prmfi.*(http.*?m3u8.*?)'.*prmim = '(.*?)'/",
143+
$b64_decode,
144+
$streaming_content,
145+
PREG_SET_ORDER
146+
);
147+
148+
foreach ($streaming_content as $item)
149+
{
150+
$stream = trim($item[1]);
151+
// $thumbnail = ($item[2]); // thumbnail FROM TRT WEB
152+
153+
$thumbnails = "https://png.kodi.al/tv/albdroid/black.png"; //FOR FASTER GET INSERT YOUR LOGO HERE
154+
155+
// FOR FASTER [GET] STREAMS CLOSE THE REPLACE
156+
/*
157+
$replace_thumbnail = str_replace(
158+
// REPLACE FROM
159+
array("//www"),
160+
// REPLACE TO
161+
array("http://www"),
162+
($thumbnail)
163+
);
164+
*/
165+
// FOR FASTER GET STREAMS CLOSE THE REPLACE
166+
167+
header("Content-Type: application/json");
168+
header("Access-Control-Allow-Origin: *");
169+
// M3U STRUCTURE
170+
$GRUP_DATA = "TRT Turk";
171+
172+
$albdroidlogo = "https://png.kodi.al/tv/albdroid/";
173+
echo "<item>\n";
174+
echo "<title>[COLOR lime][B]".$replace_titles."[/COLOR][/B]</title>\n";
175+
echo "<link>".$stream."</link>\n";
176+
echo "<thumbnail>".$albdroidlogo."black.png</thumbnail>\n";
177+
echo "<fanart>".$albdroidlogo."black.png</fanart>\n";
178+
// OR OPEN $replace_thumbnail
179+
//echo "<thumbnail>".$replace_thumbnail."</thumbnail>\n";
180+
// echo "<fanart>".$replace_thumbnail."</fanart>\n";
181+
echo "<category>".$GRUP_DATA."</category>\n";
182+
echo "<genre>[COLOR lime][B][I]Albdroid[/I][/B][/COLOR][COLOR lime] [B][I][COLOR red]([/COLOR]".$replace_titles."[COLOR red])[/COLOR] [/I][/B][/COLOR]</genre>\n";
183+
echo "<info>[COLOR lime][B]Website:[/B][/COLOR] [COLOR red][B]([/B][/COLOR][COLOR lime][B]Albdroid.AL[/B][/COLOR] [COLOR red][B]&amp;[/B][/COLOR] [COLOR lime][B]Kodi.AL[/B][/COLOR][COLOR red][B])[/B][/COLOR]</info>\n";
184+
echo "</item>\n";
185+
}
186+
ob_end_flush();
187+
?>

0 commit comments

Comments
 (0)