Kod:
- <?php
- $kanallar = "";
- $kanallar .= kanal_io("Aksu TV", "https://yerelmedya.tv/WatchTV/aksutv");
- $kanallar .= kanal_io("Av Tv", "https://yerelmedya.tv/WatchTV/avtv");
- $kanallar .= kanal_io("As Tv", "https://yerelmedya.tv/WatchTV/astv");
- $kanallar .= kanal_io("Bitlis Tv", "https://yerelmedya.tv/WatchTV/bitlistv");
- $kanallar .= kanal_io("Bltturk Tv", "https://yerelmedya.tv/WatchTV/bltturk");
- $kanallar .= kanal_io("Br Tv", "https://yerelmedya.tv/WatchTV/brtv");
- $kanallar .= kanal_io("Çiftci Tv", "https://yerelmedya.tv/WatchTV/ciftcitv");
- $kanallar .= kanal_io("Deha Tv", "https://yerelmedya.tv/WatchTV/dehatv");
- $kanallar .= kanal_io("Deniz Postasi Tv", "https://yerelmedya.tv/WatchTV/denizpostasitv");
- $kanallar .= kanal_io("Dim Tv", "https://yerelmedya.tv/WatchTV/dimtv");
- $kanallar .= kanal_io("Ege Tv", "https://yerelmedya.tv/WatchTV/egetv");
- $kanallar .= kanal_io("Er Tv", "https://yerelmedya.tv/WatchTV/ertv");
- $kanallar .= kanal_io("Firat Tv", "https://yerelmedya.tv/WatchTV/frttv");
- $kanallar .= kanal_io("Olay Tv", "https://yerelmedya.tv/WatchTV/olaytv");
- $kanallar .= kanal_io("GRT Tv", "https://yerelmedya.tv/WatchTV/grt");
- $kanallar .= kanal_io("Hunat Tv", "https://yerelmedya.tv/WatchTV/hunattv");
- $kanallar .= kanal_io("İlke Tv", "https://yerelmedya.tv/WatchTV/ilketv");
- $kanallar .= kanal_io("Kanal 12", "https://yerelmedya.tv/WatchTV/kanal12");
- $kanallar .= kanal_io("Kanal 15", "https://yerelmedya.tv/WatchTV/kanal15");
- $kanallar .= kanal_io("Kanal 23", "https://yerelmedya.tv/WatchTV/kanal23");
- $kanallar .= kanal_io("Kanal 26", "https://yerelmedya.tv/WatchTV/kanal26");
- $kanallar .= kanal_io("Kanal 3", "https://yerelmedya.tv/WatchTV/kanal3");
- $kanallar .= kanal_io("Kanal 68", "https://yerelmedya.tv/WatchTV/kanal68");
- $kanallar .= kanal_io("Kanal Firat", "https://yerelmedya.tv/WatchTV/kanalfirat");
- $kanallar .= kanal_io("Kanal Z", "https://yerelmedya.tv/WatchTV/kanalz");
- $kanallar .= kanal_io("Es TV", "https://yerelmedya.tv/WatchTV/estv");
- $kanallar .= kanal_io("Kanal V", "https://yerelmedya.tv/WatchTV/kanalv");
- $kanallar .= kanal_io("Kay TV", "https://yerelmedya.tv/WatchTV/kaytv");
- $kanallar .= kanal_io("Kent Türk", "https://yerelmedya.tv/WatchTV/38kenttv");
- $kanallar .= kanal_io("Life TV", "https://yerelmedya.tv/WatchTV/lifetv");
- $kanallar .= kanal_io("Mavi Karadeniz", "https://yerelmedya.tv/WatchTV/mavikaradeniz");
- $kanallar .= kanal_io("Mercan TV", "https://yerelmedya.tv/WatchTV/mercantv");
- $kanallar .= kanal_io("Mesaj TV", "https://yerelmedya.tv/WatchTV/mesajtv");
- $kanallar .= kanal_io("Olay Turk", "https://yerelmedya.tv/WatchTV/olayturk");
- $kanallar .= kanal_io("Power TV", "https://yerelmedya.tv/WatchTV/powertv");
- $kanallar .= kanal_io("Power Türk TV", "https://yerelmedya.tv/WatchTV/powerturktv");
- $kanallar .= kanal_io("Sat7 Türk TV", "https://yerelmedya.tv/WatchTV/sat7turk");
- $kanallar .= kanal_io("Te 60 TV", "https://yerelmedya.tv/WatchTV/te60tv");
- $kanallar .= kanal_io("Tempo TV", "https://yerelmedya.tv/WatchTV/tempotv");
- $kanallar .= kanal_io("Ton TV", "https://yerelmedya.tv/WatchTV/tontv");
- $kanallar .= kanal_io("TV A", "https://yerelmedya.tv/WatchTV/tva");
- $kanallar .= kanal_io("TV 41", "https://yerelmedya.tv/WatchTV/tv41");
- $kanallar .= kanal_io("Vizyon 58", "https://yerelmedya.tv/WatchTV/vizyon58");
- $kanallar .= kanal_io("Vuslat TV", "https://yerelmedya.tv/WatchTV/vuslattv");
- $kanallar .= kanal_io("Yeşilyurt TV", "https://yerelmedya.tv/WatchTV/yesilyurttv");
- echo "#EXTM3U\r\n";
- echo $kanallar;
- function kanal($ismi, $linki)
- {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $linki);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_REFERER, 'https://yerelmedya.tv');
- $html = curl_exec($ch);
- $t = explode("\r\n",$html);
- foreach ($t as $line) {
- $p = strpos($line, "file:");
- if ($p > 0)
- {
- $file = str_replace("file:","",$line);
- $file = str_replace("'","",$file);
- $file = str_replace(",","",$file);
- $file = trim($file);
- }
- }
- $m3u8_satir = "#EXTINF:-1,$ismi\r\n$file\r\n";
- return($m3u8_satir);
- }
- function kanal_io( $ismi, $linki)
- {
- $html = file_get_contents($linki);
- preg_match('/file\s*:\s*"(.*?)"/', $html, $results);
- $file=$results[1] . "";
- $m3u8_satir = "#EXTINF:-1,$ismi\r\n$file\r\n";
- return($m3u8_satir);
- }
Yüklendiginde m3u seklinde çıkar ekrana