Skip to content

Commit d26fddc

Browse files
authored
Add files via upload
1 parent 5b84e7b commit d26fddc

6 files changed

Lines changed: 794 additions & 0 deletions

File tree

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<?php
2+
/*
3+
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
4+
| NOTE FOR SOME MOTHERFUCKERS |
5+
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
6+
|────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
7+
| DISA MOTER QIRA I NDRYSHOJNE EMRIN OSE VALUES KETYRE SCRIPTAVE EDHE I SHPERNDAJNE NE FORUME TE NDRYSME EDHE HIQEN SI AUTOR |
8+
| KETA SCRIPTA JANE KRIJUAR NGA ALBDROID.AL EDHE JANE FREE PER TE GJITHE! |
9+
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
10+
|────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
11+
| SOME MOTHERS FUCKERS CHANGING NAME OR VALUES OF SCRIPT AND SHARE IN DIFFERENT FORUMS ALSO SAYS CREATED BY ME |
12+
| THESE SCRITS ARE CREATED BY ALBDROID.AL AND ARE FREE FOR EVERYONE! |
13+
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
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.0 │
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 │ 00:00:0000 │
32+
└────────────────────────────────────────────────────────────┘
33+
[x] To Get Live Stream Required Full Link From trt.net.tr
34+
Streams Formats: Auto Get [M3U8]
35+
*/
36+
37+
/* STREAMS LINKS
38+
TRT 1
39+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trt1
40+
41+
TRT 2
42+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trt2
43+
44+
TRT WORLD
45+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtworld
46+
47+
TRT SPORTS
48+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtspor
49+
50+
TRT SPORTS 2
51+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtspor2
52+
53+
TRT DOCUMENTARY
54+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtbelgesel
55+
56+
TRT KIDS
57+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtcocuk
58+
59+
TRT AVAZ
60+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtavaz
61+
62+
TRT MUSIC
63+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtmuzik
64+
65+
TRT TÜRK
66+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtturk
67+
68+
TRT KURDÎ
69+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trt6
70+
71+
TRT CAR
72+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtarapca
73+
74+
TRT 3 - TBMM TV
75+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trt3tbmmtv
76+
*/
77+
78+
error_reporting(0);
79+
set_time_limit(0);
80+
date_default_timezone_set("Europe/Tirane");
81+
// ?stream=trtarapca
82+
$STREAM_URL = file_get_contents("http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtarapca");
83+
//$STREAM_URL = file_get_contents("http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trt6");
84+
// START GET STREAM TITLES
85+
$STREAM_TITLE_URL = ($STREAM_URL);
86+
preg_match("/title>(.*\w)</",$STREAM_TITLE_URL,$GET_STREAM_TITLE);
87+
$TITULLI = $GET_STREAM_TITLE[1];
88+
// END GET STREAM TITLES
89+
$REPLACE_TITLES = str_replace(
90+
array(" - Canlı İzle - TRT", "Î", "î", "ç", "Ç", "ğ", "Ğ", "ö", "Ö", "ş", "Ş", "ü", "Ü"),
91+
array("", "I", "i", "c", "C", "g". "Ğ", "o", "O", "s", "S", "u", "U"),
92+
$TITULLI
93+
);
94+
// START BASE64 DECODE AND GET M3U8 STREAM
95+
preg_match('/dcm1\("([^"]+)"/', $STREAM_URL, $getbase64);
96+
$decodifikim = $getbase64[1];
97+
$BASE64_DECODED = base64_decode($decodifikim);
98+
$BASE64_STRING = ($BASE64_DECODED);
99+
preg_match("/var prmfi = '(.*?)'/", ($BASE64_STRING), $STREAM_MACHES);
100+
$M3U_STREAM = $STREAM_MACHES[1];
101+
// END BASE64 DECODE AND GET M3U8 STREAM
102+
// PRINT CLEARED TITLES AND STREAMS
103+
header('Access-Control-Allow-Origin: *');
104+
header('Content-type: application/json');
105+
$albdroidlogo = "https://png.kodi.al/tv/albdroid/";
106+
echo "<item>\n";
107+
echo "<title>[COLOR lime][B]".$REPLACE_TITLES."[/COLOR][/B]</title>\n";
108+
echo "<link>".$M3U_STREAM."</link>\n";
109+
echo "<thumbnail>".$albdroidlogo."black.png</thumbnail>\n";
110+
echo "<fanart>".$albdroidlogo."black.png</fanart>\n";
111+
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";
112+
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";
113+
echo "</item>\n";
114+
?>
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
<?php
2+
/*
3+
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
4+
| NOTE FOR SOME MOTHERFUCKERS |
5+
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
6+
|────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
7+
| DISA MOTER QIRA I NDRYSHOJNE EMRIN OSE VALUES KETYRE SCRIPTAVE EDHE I SHPERNDAJNE NE FORUME TE NDRYSME EDHE HIQEN SI AUTOR |
8+
| KETA SCRIPTA JANE KRIJUAR NGA ALBDROID.AL EDHE JANE FREE PER TE GJITHE! |
9+
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
10+
|────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
11+
| SOME MOTHERS FUCKERS CHANGING NAME OR VALUES OF SCRIPT AND SHARE IN DIFFERENT FORUMS ALSO SAYS CREATED BY ME |
12+
| THESE SCRITS ARE CREATED BY ALBDROID.AL AND ARE FREE FOR EVERYONE! |
13+
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
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.0 │
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 │ 00:00:0000 │
32+
└────────────────────────────────────────────────────────────┘
33+
[x] To Get Live Stream Required Full Link From trt.net.tr
34+
Streams Formats: Auto Get [M3U8]
35+
*/
36+
37+
/* STREAMS LINKS
38+
TRT 1
39+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trt1
40+
41+
TRT 2
42+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trt2
43+
44+
TRT WORLD
45+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtworld
46+
47+
TRT SPORTS
48+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtspor
49+
50+
TRT SPORTS 2
51+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtspor2
52+
53+
TRT DOCUMENTARY
54+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtbelgesel
55+
56+
TRT KIDS
57+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtcocuk
58+
59+
TRT AVAZ
60+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtavaz
61+
62+
TRT MUSIC
63+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtmuzik
64+
65+
TRT TÜRK
66+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtturk
67+
68+
TRT KURDÎ
69+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trt6
70+
71+
TRT CAR
72+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trtarapca
73+
74+
TRT 3 - TBMM TV
75+
http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trt3tbmmtv
76+
*/
77+
78+
error_reporting(0);
79+
set_time_limit(0);
80+
date_default_timezone_set("Europe/Tirane");
81+
// ?stream=trtarapca
82+
$id = htmlspecialchars($_GET['stream']);
83+
if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === 'off') {
84+
$protocol = 'http://';
85+
} else {
86+
$protocol = 'https://';
87+
}
88+
89+
$ROOT_URL = $protocol . $_SERVER['SERVER_NAME'] . ($_SERVER['PHP_SELF']) . "";
90+
// $ROOT_URL = $protocol . $_SERVER['SERVER_NAME'] . dirname($_SERVER['PHP_SELF']) . "/";
91+
//$VLC_RAW = $ROOT_URL . "VLC_by_ID.php?stream=" . "trtarapca";
92+
$GET_Example = $ROOT_URL . "?stream=" . "trtarapca";
93+
if(!$id) die("
94+
<b>
95+
<center>
96+
<font color=lime><h2>TRT TURK Live Stream Extractor </h2></b>
97+
</center>
98+
<center>
99+
<font color=red><b>STRUKTURA!!!</b>
100+
</center>
101+
<br/>
102+
<b>
103+
<center>
104+
<font color=lime>Platform: Smart TV VLC Kodi ETC</b>
105+
</center>
106+
</font>
107+
<br/>
108+
<body style='background-color:black'>
109+
<b>
110+
<center>
111+
<font color=lime>?stream={STREAM NAME}</b>
112+
</center>
113+
</font>
114+
<br/>
115+
<b>
116+
<center>
117+
<font color=lime>Pershembull:<br>
118+
<font color=lime>GET Example:<font color=red> $GET_Example<br>
119+
</b>
120+
</center>
121+
</font>
122+
<br/>
123+
<b>
124+
<center>
125+
<font color=lime>API: https://kodi.al/</b></center></font>
126+
<br/>
127+
<b><center><font color=lime>FB: /albdroid.official/</b></center></font><br/>
128+
"
129+
);
130+
header("Content-Type: application/rss+xml; charset=utf-8");
131+
132+
$STREAM_URL = file_get_contents("http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=".$id);
133+
//$STREAM_URL = file_get_contents("http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trt6");
134+
// START GET STREAM TITLES
135+
$STREAM_TITLE_URL = ($STREAM_URL);
136+
preg_match("/title>(.*\w)</",$STREAM_TITLE_URL,$GET_STREAM_TITLE);
137+
$TITULLI = $GET_STREAM_TITLE[1];
138+
// END GET STREAM TITLES
139+
$REPLACE_TITLES = str_replace(
140+
array(" - Canlı İzle - TRT", "Î", "î", "ç", "Ç", "ğ", "Ğ", "ö", "Ö", "ş", "Ş", "ü", "Ü"),
141+
array("", "I", "i", "c", "C", "g". "Ğ", "o", "O", "s", "S", "u", "U"),
142+
$TITULLI
143+
);
144+
// START BASE64 DECODE AND GET M3U8 STREAM
145+
preg_match('/dcm1\("([^"]+)"/', $STREAM_URL, $getbase64);
146+
$decodifikim = $getbase64[1];
147+
$BASE64_DECODED = base64_decode($decodifikim);
148+
$BASE64_STRING = ($BASE64_DECODED);
149+
preg_match("/var prmfi = '(.*?)'/", ($BASE64_STRING), $STREAM_MACHES);
150+
$M3U_STREAM = $STREAM_MACHES[1];
151+
// END BASE64 DECODE AND GET M3U8 STREAM
152+
// PRINT CLEARED TITLES AND STREAMS
153+
header('Access-Control-Allow-Origin: *');
154+
header('Content-type: application/json');
155+
$albdroidlogo = "https://png.kodi.al/tv/albdroid/";
156+
echo "<item>\n";
157+
echo "<title>[COLOR lime][B]".$REPLACE_TITLES."[/COLOR][/B]</title>\n";
158+
echo "<link>".$M3U_STREAM."</link>\n";
159+
echo "<thumbnail>".$albdroidlogo."black.png</thumbnail>\n";
160+
echo "<fanart>".$albdroidlogo."black.png</fanart>\n";
161+
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";
162+
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";
163+
echo "</item>\n";
164+
?>

0 commit comments

Comments
 (0)