PHP- Kodu:
<?php
- echo "#EXTINF:1,Corona covid tv"; echo "\n";
- $linkler = file_get_contents("https://www.youtube.com/channel/UCDGiCfCZIV5phsoGiPwIcyQ/videos?view=2&flow=list&live_view=501");
- preg_match('@"/watch?(.*?)"@si',$linkler,$idd);
- $url = ("https://www.youtube.com/watch" . $idd[1]);
-
-
- $html = file_get_contents("$url");
- preg_match_all(
- '/(hlsManifestUrl.*?\.m3u8[^&">]+)/',
-
-
- $html,
- $posts,
- PREG_SET_ORDER
- );
-
-
- foreach ($posts as $post) {
-
-
- $link = $post[0];
-
-
- $link = stripslashes($post[0]);
- $link = str_replace("hlsManifestUrl","",$link);
- $link = str_replace("\":\"","",$link);
-
-
-
- $man = file_get_contents("$link");
- preg_match_all('/(https:\/.*\/95\/.*index.m3u8)/U',$man,$matches, PREG_PATTERN_ORDER);
- $link1 = $matches[1][0];
- header("Content-Type application/vnd.apple.mpegurl");
- header("Location: $link1"); echo "\n";
- }
- ?>
Burda
[Sadece kayıtlı ve aktif kullanıcılar bağlantıları görebilir.] Kayıt Olmak İçin Tıklayınız.. linkteki video id degişsse de canli yayında ise gösterir. Normalda link
[Sadece kayıtlı ve aktif kullanıcılar bağlantıları görebilir.] Kayıt Olmak İçin Tıklayınız.. bu şekil. Ama bu değiştimi de otomatik link düzeltir eger canlı yayında ise.