From f088badebbbbbb982fd1a306701443e6a23f18cf Mon Sep 17 00:00:00 2001 From: Adam Lavin Date: Sat, 12 Sep 2015 22:10:36 +0100 Subject: [PATCH] Handle wav files and ignore any wmv files --- 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 53c0b4d8..e6c1cd0c 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', 'wma']; + protected $ignoredExtensions = ['db', 'jpg', 'png', 'txt', 'rtf', 'wma', 'wmv']; /** * Used to stop the import process when a SIGINT is received. @@ -161,6 +161,9 @@ class ImportMLPMA extends Command { } else if (Str::lower($file->getExtension()) === 'flac') { list($parsedTags, $rawTags) = $this->getVorbisTags($allTags); + } else if (Str::lower($file->getExtension()) === 'wav') { + list($parsedTags, $rawTags) = $this->getAtomTags($allTags); + }