From d77d89501439c92613e5d225a3dbd9b9976a2f82 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Thu, 10 Sep 2015 13:01:01 +0100 Subject: [PATCH] Merge rPF9b10161ca44c: T357: Made the importer's file type check case-insensitive. --- app/Console/Commands/ImportMLPMA.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/Console/Commands/ImportMLPMA.php b/app/Console/Commands/ImportMLPMA.php index d1449189..3ed12e7f 100644 --- a/app/Console/Commands/ImportMLPMA.php +++ b/app/Console/Commands/ImportMLPMA.php @@ -153,13 +153,11 @@ class ImportMLPMA extends Command // normalized tags used by Pony.fm $parsedTags = []; - if ($file->getExtension() === 'mp3') { + if (Str::lower($file->getExtension()) === 'mp3') { list($parsedTags, $rawTags) = $this->getId3Tags($allTags); - } else { - if ($file->getExtension() === 'm4a') { - list($parsedTags, $rawTags) = $this->getAtomTags($allTags); - } + } elseif (Str::lower($file->getExtension()) === 'm4a') { + list($parsedTags, $rawTags) = $this->getAtomTags($allTags); }