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

This commit is contained in:
Kelvin Zhang 2015-09-10 13:01:01 +01:00
parent 5bc6dd78b0
commit d77d895014

View file

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