mirror of
https://github.com/koel/koel
synced 2024-11-27 22:40:26 +00:00
Merge pull request #202 from joanfont/1.1
case insensitive file extension lookup
This commit is contained in:
commit
c0e834d483
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue