Changed params for deletion of channels

This commit is contained in:
Kasper Rynning-Tønnesen
2015-02-09 19:35:44 +01:00
parent 8b6ec9739a
commit 99b1815146

View File

@@ -17,7 +17,8 @@ foreach($dir as $files){
{
$file = file_get_contents('./lists/'.$files); //Checking if the channel has the setting for showing on the frontpage set to true.
$data = json_decode($file, TRUE);
if(sizeof($data["songs"]) == 0)
$q = array_values($data["nowPlaying"]);
if($q[0]["id"] == "XQu8TTBmGhA");
{
unlink("./lists/".$files);
}