Grüßt Euch,

ich versuche verzweifelt die NFO (txt) zu extrahieren, aber leider ohne Erfolg.
Alles andere funktioniert, nur ich komme nicht an die NFO - Jedenfalls über diesen Weg.
Hat jemand eine Idee? Hier der Code:

PHP-Code:
<?php
// Lade Release
$url1 file_get_contents('https://www.xrel.to/search.html?mode=full&xrel_search_query=The.Purge.Anarchy.2014.MULTi.COMPLETE.BLURAY-XORBiTANT');

// Hole die Info-Seite
preg_match('!<div class="article">.<p class="article_text" style="width:690px">(.+)<a href="(.+)">weiter...</a></p>!iUm'$url1$xrel_rl_url);
$xrel_rl_url $xrel_rl_url[2];

// Hole NFO
preg_match('!<div id="nfo_text" style=".*"><pre>(.+)</pre></div>!isUm'$url1$xrel_nfo);
$xrel_nfo[1] = str_replace("\n",'<br />'$xrel_nfo[1]);   
$pattern '!<(.*)>!isUm'
$replace ''
$nfo preg_replace($pattern$replace$xrel_nfo[1]); 

// Lade die Info-Seite
$url2 file_get_contents('https://www.xrel.to' $xrel_rl_url);

// URI extrahieren
preg_match('!<div class="box_list2"> <img src="//static.xrel.to/static/img/icons/link.png" alt="IMDb.com" /> </div>.<div class="box_list2_right" style="text-align:right;"> <a href="(.+)" title="(.+)">IMDb.com</a> </div>!iUm'$url2$uri);
$uri str_replace('http://www.imdb.com/title/'''$uri[2]);

// Weitergabe und Suche für OMDAPI
$tmdb file_get_contents('http://www.omdbapi.com/?i=' $uri '&plot=short&r=json');
$opt json_decode($tmdb);
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>6</title>
</head>

<body>
Url: <?php
echo $xrel_rl_url?><br />
NFO:<br />
<pre><?php
echo $nfo?></pre><br />
Uri: <?php
echo $uri?><br /> <br /> <br />

<?php
echo '
              <div class="row">
                <center>
                  <h1>' 
$opt->Title '</h1><br />
                  <div class="col-md-6">
                    <img src="' 
$opt->Poster '" class="img-rounded">
                  </div>
                  <div class="col-md-6">
                    <b>Jahr:</b> ' 
$opt->Year ' <br />
                    <b>Veroeffentlichung:</b> ' 
$opt->Released ' <br />
                    <b>Laufzeit:</b> ' 
$opt->Runtime ' <br />
                    <b>Genre:</b> ' 
$opt->Genre ' <br />
                    <b>Regisseur:</b> ' 
$opt->Director ' <br />
                    <b>Schreiber:</b> ' 
$opt->Writer ' <br />
                    <b>Schauspieler:</b> ' 
$opt->Actors ' <br />
                    <b>Beschreibung:</b> ' 
$opt->Plot ' <br />
                    <b>Sprache:</b> ' 
$opt->Language ' <br />
                    <b>Land:</b> ' 
$opt->Country ' <br />
                    <b>Auszeichnungen:</b> ' 
$opt->Awards ' <br />
                  </div>
                </center>                              
              </div>
              '
;
?>
</body>
</html>