Kod oni chcu len link na video
<?php
$data = file_get_contents("http://sledujserialy.sk/episode/into-the-wild-2", FILE_USE_INCLUDE_PATH);
$data_uprava = str_replace('<iframe', "[iframe]", $data);
$data_uprava = str_replace('</iframe>', "[/iframe]", $data_uprava);
if (preg_match_all('#\[iframe\](.+)\[/iframe\]#iU', $data_uprava, $matchs)) {foreach ($matchs[0] as $i => $match)$zdroj[$i] = trim($match);}
for($i = 0; $i < count($zdroj); $i++){
$pole = explode('"', $zdroj[$i]);
for($x = 0; $x < count($pole); $x++){
$hodnota = substr($pole[$x], 0,5);
if ($hodnota == "https" OR $hodnota == "http:")
{
$uprava_text = str_replace('//', "#", $pole[$x]);
$uprava_text = str_replace('/', "#", $uprava_text);
$pole_url = explode('#', $uprava_text);
for($a = 0; $a < count($pole_url); $a++){
if ($pole_url[$a] == "openload.co" OR $pole_url[$a] == "www.openload.co"){echo "$i - openload - $pole[$x] <br>";}
if ($pole_url[$a] == "youwatch.org" OR $pole_url[$a] == "www.youwatch.org"){echo "$i - youwatch - $pole[$x] <br>";}
if ($pole_url[$a] == "flashx.tv" OR $pole_url[$a] == "www.flashx.tv"){echo "$i - flashx.tv - $pole[$x] <br>";}
}
}
}
}
?>
a vypiše sa vždy len jeden
0 - openload - https://openload.co/….CZ..avi.mp4 <br>