Merge branch '1.1' of github.com:phanan/koel into 1.1

This commit is contained in:
An Phan 2016-01-26 14:28:13 +08:00
commit 2aa3efa19e

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