Merge pull request #202 from joanfont/1.1

case insensitive file extension lookup
This commit is contained in:
Phan An 2016-01-26 14:23:44 +08:00
commit c0e834d483

View file

@ -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);