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
I was trying to use the library to save multiple artists and multiple genre frames in compliance with Id3v2.4; although the library suports multiple frames, I found a bug that causes to store only two frames at most.
I'm using the '\' (double backslash) separator to specify multiple values; for instance, if I want to save three genre frames I would do something like this: Genre1\Genre2\Genre3; but this ends up with two frames: Genre1 and Genre2\Genre3.
I think the problem is that the write.textFrame function uses a value.replace to identify and replace the separator; the issue is that the replace only works for the first occurrence in the string; you need to use either replaceAll or a regex to replace all occurrences at once.
The text was updated successfully, but these errors were encountered:
I was trying to use the library to save multiple artists and multiple genre frames in compliance with Id3v2.4; although the library suports multiple frames, I found a bug that causes to store only two frames at most.
I'm using the '\' (double backslash) separator to specify multiple values; for instance, if I want to save three genre frames I would do something like this: Genre1\Genre2\Genre3; but this ends up with two frames: Genre1 and Genre2\Genre3.
I think the problem is that the write.textFrame function uses a value.replace to identify and replace the separator; the issue is that the replace only works for the first occurrence in the string; you need to use either replaceAll or a regex to replace all occurrences at once.
The text was updated successfully, but these errors were encountered: