From a124a97cd3a6d357d681b96ef12e97ab4aa01267 Mon Sep 17 00:00:00 2001 From: Joan Font Date: Mon, 25 Jan 2016 18:48:33 +0100 Subject: [PATCH] case insentive file extension when looking up for files to add into the library --- app/Services/Media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Media.php b/app/Services/Media.php index 662de268..4b127e6d 100644 --- a/app/Services/Media.php +++ b/app/Services/Media.php @@ -46,7 +46,7 @@ class Media // For now we only care about mp3 and ogg files. // Support for other formats (AAC?) may be added in the future. - $files = Finder::create()->files()->name('/\.(mp3|ogg|m4a)$/')->in($path); + $files = Finder::create()->files()->name('/\.(mp3|ogg|m4a)$/i')->in($path); foreach ($files as $file) { $song = $this->syncFile($file);