From d77ddb8e772994c43b4c6cc152f681ef4510a5e3 Mon Sep 17 00:00:00 2001 From: Tomas Date: Thu, 2 Oct 2025 13:12:52 +0200 Subject: [PATCH] List only mkv files --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 90e3988..9340213 100644 --- a/index.php +++ b/index.php @@ -7,7 +7,7 @@ $iter = new RecursiveIteratorIterator($dirIter); foreach ($iter as $entry) { - if ($entry->isFile()) + if ($entry->isFile() && str_ends_with($entry->getFileName(), ".mkv")) { $files[] = $entry; }