From 99b1815146390f2e4673fe943f47460155bd80dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Mon, 9 Feb 2015 19:35:44 +0100 Subject: [PATCH] Changed params for deletion of channels --- php/nochan.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/php/nochan.php b/php/nochan.php index 2e079bc6..bdefbe74 100755 --- a/php/nochan.php +++ b/php/nochan.php @@ -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); }