Added shufflebutton

This commit is contained in:
Kasper Rynning-Tønnesen
2015-02-09 23:41:16 +01:00
parent d8e1e1511e
commit e2cb71d1af
5 changed files with 39 additions and 12 deletions

View File

@@ -15,13 +15,11 @@ foreach($dir as $files){
$time_lasted = time() - filemtime('./lists/'.$files);
if($time_lasted > $to)
{
$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);
$data = json_decode($file, TRUE);
$q = array_values($data["nowPlaying"]);
if($q[0]["id"] == "30H2Z8Lr-4c");
{
unlink("./lists/".$files);
}
}
if($time_lasted < $time){
$file = file_get_contents('./lists/'.$files); //Checking if the channel has the setting for showing on the frontpage set to true.