mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 13:07:59 +01:00
Merge rPF9b10161ca44c: T357: Made the importer's file type check case-insensitive.
This commit is contained in:
parent
5bc6dd78b0
commit
d77d895014
1 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue