Commit 62117f76 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 955847d5
......@@ -522,8 +522,10 @@ class Media {
}
private function GenerateNFO($DataArr, $File){
$nfoFile = substr($File,0,strripos($File,".")).".nfo"; // Echte NFO Ausgabe Pfad
$mediaDB = $this->jsonCacheDecoder("http://mediadb.ivaya.de/api.php?key=".$this->config["ApiKeys"]['Fanart_Key']."&action=GetDataList&Tabelle=Filme&Spalten=imdbID,name,views,lastView,Genre,Schauspieler&imdbID=".$DataArr["imdbID"]);
$nfoFile = str_replace("/media/QNAP/Filme", "phpTestout", $nfoFile); // nur für Testausgaben drin....
$mediaDBurl = "http://mediadb.ivaya.de/api.php?key=".$this->config["ApiKeys"]['Fanart_Key']."&action=GetDataList&Tabelle=Filme&Spalten=imdbID,name,views,lastView,Genre,Schauspieler&imdbID=".$DataArr["imdbID"];
echo $mediaDBurl.PHP_EOL;
$mediaDB = $this->jsonCacheDecoder($mediaDBurl);
$nfoFile = str_replace("/media/QNAP/Filme", "./phpTestout", $nfoFile); // nur für Testausgaben drin....
$co = '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'.PHP_EOL;
$co.= '<movie>'.PHP_EOL;
$co.= ' <title>'.$DataArr['name'].'</title>'.PHP_EOL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment