From 207569e5978dd5409af72e1ae9fa0ef55d7fa299 Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Fri, 11 Sep 2015 10:47:40 -0700 Subject: [PATCH] T357: Ignore WMA files and added support for FLAC imports. --- app/commands/ImportMLPMA.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/commands/ImportMLPMA.php b/app/commands/ImportMLPMA.php index 17f91243..01eca5f4 100644 --- a/app/commands/ImportMLPMA.php +++ b/app/commands/ImportMLPMA.php @@ -37,7 +37,7 @@ class ImportMLPMA extends Command { * * @var array */ - protected $ignoredExtensions = ['db', 'jpg', 'png', 'txt', 'rtf']; + protected $ignoredExtensions = ['db', 'jpg', 'png', 'txt', 'rtf', 'wma']; /** * Used to stop the import process when a SIGINT is received. @@ -158,6 +158,9 @@ class ImportMLPMA extends Command { } else if (Str::lower($file->getExtension()) === 'ogg') { list($parsedTags, $rawTags) = $this->getVorbisTags($allTags); + } else if (Str::lower($file->getExtension()) === 'flac') { + list($parsedTags, $rawTags) = $this->getVorbisTags($allTags); + }