Commit 5b6464a6 authored by Nico Schallehn's avatar Nico Schallehn

test 5

parent 64414a51
......@@ -1321,7 +1321,7 @@ class Media {
}
$filename= md5($url).".json"; //TODO Cachetime Ändern
if(!file_exists($CacheFolderName.$filename)){
$Data = file_get_contents($url);
$Data = @file_get_contents($url);
if(strlen($Data)>0){
file_put_contents($CacheFolderName.$filename, file_get_contents($url));
}else{
......@@ -1377,6 +1377,8 @@ class Media {
$posterURL = $value2["url"];
}
}
}else{
$posterURL = "";
}
if(!(strlen($posterURL)== 0)){
shell_exec("wget ".$posterURL." -O ".$this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg > /dev/null 2>&1"); //");//
......
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