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,14 +153,12 @@ 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 { } elseif (Str::lower($file->getExtension()) === 'm4a') {
if ($file->getExtension() === 'm4a') {
list($parsedTags, $rawTags) = $this->getAtomTags($allTags); list($parsedTags, $rawTags) = $this->getAtomTags($allTags);
} }
}
//========================================================================================================== //==========================================================================================================