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