mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-26 06:57:58 +01:00
T357: Made the importer's file type check case-insensitive.
This commit is contained in:
parent
a0fb15a86a
commit
9b10161ca4
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue