mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
T357: Handle the complete lack of ID3 tags gracefully.
This commit is contained in:
parent
9b10161ca4
commit
f656c3aadf
1 changed files with 5 additions and 2 deletions
|
@ -392,10 +392,13 @@ class ImportMLPMA extends Command {
|
|||
* @return array
|
||||
*/
|
||||
protected function getId3Tags($rawTags) {
|
||||
if (array_key_exists('id3v2', $rawTags['tags'])) {
|
||||
if (array_key_exists('tags', $rawTags) &&
|
||||
array_key_exists('id3v2', $rawTags['tags'])) {
|
||||
$tags = $rawTags['tags']['id3v2'];
|
||||
|
||||
} else if (array_key_exists('id3v1', $rawTags['tags'])) {
|
||||
} else if (
|
||||
array_key_exists('tags', $rawTags) &&
|
||||
array_key_exists('id3v1', $rawTags['tags'])) {
|
||||
$tags = $rawTags['tags']['id3v1'];
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue