From a33747b67f15c6ab2c1b9ee87b4ec9a7d50b8a58 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 21 Mar 2019 23:43:24 +0100 Subject: [PATCH] dont count video file --- getPreview.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/getPreview.php b/getPreview.php index 3c2d32f..cd363f8 100644 --- a/getPreview.php +++ b/getPreview.php @@ -52,7 +52,10 @@ function getFileCountInFolder() while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != "..") { - array_push($files, $entry); + if(getFileExtention($entry) != "mp4") + { + array_push($files, $entry); + } } }