T357: Made the importer's file type check case-insensitive.

This commit is contained in:
Peter Deltchev 2015-09-09 00:39:53 -07:00
parent a0fb15a86a
commit 9b10161ca4

View file

@ -149,10 +149,10 @@ class ImportMLPMA extends Command {
// normalized tags used by Pony.fm // normalized tags used by Pony.fm
$parsedTags = []; $parsedTags = [];
if ($file->getExtension() === 'mp3') { if (Str::lower($file->getExtension()) === 'mp3') {
list($parsedTags, $rawTags) = $this->getId3Tags($allTags); list($parsedTags, $rawTags) = $this->getId3Tags($allTags);
} else if ($file->getExtension() === 'm4a') { } else if (Str::lower($file->getExtension()) === 'm4a') {
list($parsedTags, $rawTags) = $this->getAtomTags($allTags); list($parsedTags, $rawTags) = $this->getAtomTags($allTags);
} }