mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-04-01 00:35:30 +02: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
|
// 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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue