mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Changed params for deletion of channels
This commit is contained in:
@@ -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.
|
$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);
|
$data = json_decode($file, TRUE);
|
||||||
if(sizeof($data["songs"]) == 0)
|
$q = array_values($data["nowPlaying"]);
|
||||||
|
if($q[0]["id"] == "XQu8TTBmGhA");
|
||||||
{
|
{
|
||||||
unlink("./lists/".$files);
|
unlink("./lists/".$files);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user