bahri - ait Kullanıcı Resmi (Avatar)
bahri
08.20.2020, 00:04
Üyelik tarihi 02.26.2018
9 konu

Toplu yerel kanallar m3u

Kod:
  1. <?php
  2. $kanallar = "";
  3. $kanallar .= kanal_io("Aksu TV", "https://yerelmedya.tv/WatchTV/aksutv");
  4. $kanallar .= kanal_io("Av Tv", "https://yerelmedya.tv/WatchTV/avtv");
  5. $kanallar .= kanal_io("As Tv", "https://yerelmedya.tv/WatchTV/astv");
  6. $kanallar .= kanal_io("Bitlis Tv", "https://yerelmedya.tv/WatchTV/bitlistv");
  7. $kanallar .= kanal_io("Bltturk Tv", "https://yerelmedya.tv/WatchTV/bltturk");
  8. $kanallar .= kanal_io("Br Tv", "https://yerelmedya.tv/WatchTV/brtv");
  9. $kanallar .= kanal_io("Çiftci Tv", "https://yerelmedya.tv/WatchTV/ciftcitv");
  10. $kanallar .= kanal_io("Deha Tv", "https://yerelmedya.tv/WatchTV/dehatv");
  11. $kanallar .= kanal_io("Deniz Postasi Tv", "https://yerelmedya.tv/WatchTV/denizpostasitv");
  12. $kanallar .= kanal_io("Dim Tv", "https://yerelmedya.tv/WatchTV/dimtv");
  13. $kanallar .= kanal_io("Ege Tv", "https://yerelmedya.tv/WatchTV/egetv");
  14. $kanallar .= kanal_io("Er Tv", "https://yerelmedya.tv/WatchTV/ertv");
  15. $kanallar .= kanal_io("Firat Tv", "https://yerelmedya.tv/WatchTV/frttv");
  16. $kanallar .= kanal_io("Olay Tv", "https://yerelmedya.tv/WatchTV/olaytv");
  17. $kanallar .= kanal_io("GRT Tv", "https://yerelmedya.tv/WatchTV/grt");
  18. $kanallar .= kanal_io("Hunat Tv", "https://yerelmedya.tv/WatchTV/hunattv");
  19. $kanallar .= kanal_io("İlke Tv", "https://yerelmedya.tv/WatchTV/ilketv");
  20. $kanallar .= kanal_io("Kanal 12", "https://yerelmedya.tv/WatchTV/kanal12");
  21. $kanallar .= kanal_io("Kanal 15", "https://yerelmedya.tv/WatchTV/kanal15");
  22. $kanallar .= kanal_io("Kanal 23", "https://yerelmedya.tv/WatchTV/kanal23");
  23. $kanallar .= kanal_io("Kanal 26", "https://yerelmedya.tv/WatchTV/kanal26");
  24. $kanallar .= kanal_io("Kanal 3", "https://yerelmedya.tv/WatchTV/kanal3");
  25. $kanallar .= kanal_io("Kanal 68", "https://yerelmedya.tv/WatchTV/kanal68");
  26. $kanallar .= kanal_io("Kanal Firat", "https://yerelmedya.tv/WatchTV/kanalfirat");
  27. $kanallar .= kanal_io("Kanal Z", "https://yerelmedya.tv/WatchTV/kanalz");
  28. $kanallar .= kanal_io("Es TV", "https://yerelmedya.tv/WatchTV/estv");
  29. $kanallar .= kanal_io("Kanal V", "https://yerelmedya.tv/WatchTV/kanalv");
  30. $kanallar .= kanal_io("Kay TV", "https://yerelmedya.tv/WatchTV/kaytv");
  31. $kanallar .= kanal_io("Kent Türk", "https://yerelmedya.tv/WatchTV/38kenttv");
  32. $kanallar .= kanal_io("Life TV", "https://yerelmedya.tv/WatchTV/lifetv");
  33. $kanallar .= kanal_io("Mavi Karadeniz", "https://yerelmedya.tv/WatchTV/mavikaradeniz");
  34. $kanallar .= kanal_io("Mercan TV", "https://yerelmedya.tv/WatchTV/mercantv");
  35. $kanallar .= kanal_io("Mesaj TV", "https://yerelmedya.tv/WatchTV/mesajtv");
  36. $kanallar .= kanal_io("Olay Turk", "https://yerelmedya.tv/WatchTV/olayturk");
  37. $kanallar .= kanal_io("Power TV", "https://yerelmedya.tv/WatchTV/powertv");
  38. $kanallar .= kanal_io("Power Türk TV", "https://yerelmedya.tv/WatchTV/powerturktv");
  39. $kanallar .= kanal_io("Sat7 Türk TV", "https://yerelmedya.tv/WatchTV/sat7turk");
  40. $kanallar .= kanal_io("Te 60 TV", "https://yerelmedya.tv/WatchTV/te60tv");
  41. $kanallar .= kanal_io("Tempo TV", "https://yerelmedya.tv/WatchTV/tempotv");
  42. $kanallar .= kanal_io("Ton TV", "https://yerelmedya.tv/WatchTV/tontv");
  43. $kanallar .= kanal_io("TV A", "https://yerelmedya.tv/WatchTV/tva");
  44. $kanallar .= kanal_io("TV 41", "https://yerelmedya.tv/WatchTV/tv41");
  45. $kanallar .= kanal_io("Vizyon 58", "https://yerelmedya.tv/WatchTV/vizyon58");
  46. $kanallar .= kanal_io("Vuslat TV", "https://yerelmedya.tv/WatchTV/vuslattv");
  47. $kanallar .= kanal_io("Yeşilyurt TV", "https://yerelmedya.tv/WatchTV/yesilyurttv");
  48. echo "#EXTM3U\r\n";
  49. echo $kanallar;
  50. function kanal($ismi, $linki)
  51. {
  52. $ch = curl_init();
  53. curl_setopt($ch, CURLOPT_URL, $linki);
  54. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  55. curl_setopt($ch, CURLOPT_REFERER, 'https://yerelmedya.tv');
  56. $html = curl_exec($ch);
  57. $t = explode("\r\n",$html);
  58. foreach ($t as $line) {
  59. $p = strpos($line, "file:");
  60. if ($p > 0)
  61. {
  62. $file = str_replace("file:","",$line);
  63. $file = str_replace("'","",$file);
  64. $file = str_replace(",","",$file);
  65. $file = trim($file);
  66. }
  67. }
  68. $m3u8_satir = "#EXTINF:-1,$ismi\r\n$file\r\n";
  69. return($m3u8_satir);
  70. }
  71. function kanal_io( $ismi, $linki)
  72. {
  73. $html = file_get_contents($linki);
  74. preg_match('/file\s*:\s*"(.*?)"/', $html, $results);
  75. $file=$results[1] . "";
  76. $m3u8_satir = "#EXTINF:-1,$ismi\r\n$file\r\n";
  77. return($m3u8_satir);
  78. }
Yüklendiginde m3u seklinde çıkar ekrana