Skip to content

A self-hosted media server and file management system

fix file indexing

aminnausineac849f74a0e
diff --git a/app/Jobs/IndexFiles.php b/app/Jobs/IndexFiles.php
index 885379c4..845d05a8 100644
--- a/app/Jobs/IndexFiles.php
+++ b/app/Jobs/IndexFiles.php
@@ -345,7 +345,7 @@ class IndexFiles implements ShouldQueue, ShouldBeUnique
foreach ($files as $file){
$cost++;
$ext = pathinfo($file, PATHINFO_EXTENSION);
- if ($ext !== 'mp4' && $ext !== 'mkv' ) continue;
+ if (strtolower($ext) !== 'mp4' && strtolower($ext) !== 'mkv' ) continue;
$name = basename($file);
$cleanName = basename($file,".$ext");