You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When analyzing an mp3 file with chapters, I get the following error:
The returned data from the analyze function is missing a chunk of the info, such as mime_type, avdataoffset, ...
You correctly traced the source of the problem. Even more naively, error-suppressing the list will fix it: @list($subframe['chapter_url_description'], $subframe['chapter_url']) = explode("\x00", $encoding_converted_text, 2);
Which is how I have fixed it in a99e0a2
I backported this fix to 2.0 in #356.
Please require james-heinrich/getid3:^2.0-dev if you need so in your composer.json until the new version is released.
When analyzing an mp3 file with chapters, I get the following error:
The returned data from the analyze function is missing a chunk of the info, such as
mime_type
,avdataoffset
, ...Steps to reproduce
Expected behavior
The returned data from the analyze method should include all of the expected data.
Relevant logs and/or screenshots
What is returned:
What should be returned:
Context
Possible fixes
With some brute force var_dumps, I was able to pinpoint the issue to this line, just after the
WXXX
case:👉 Apparently, the
$encoding_converted_text
doesn't include thechapter_url
so theindex 1
doesn't exist in the array created from theexplode()
.Naively, this fixes it:
That being said, thanks for your hard work, getID3 is amazing 🙂
The text was updated successfully, but these errors were encountered: