Skip to content

Commit

Permalink
Fix #5 : parse TXXX field with a key, but without any value
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeugma440 committed Feb 12, 2018
1 parent 693e5cb commit 5789e88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ATL/AudioData/IO/ID3v2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,9 @@ private bool readFrame(
strData = Utils.StripEndingZeroChars(frameEncoding.GetString(bData));

string[] tabS = strData.Split('\0');

Frame.ID = tabS[0];
strData = tabS[1];
if (tabS.Length > 1) strData = tabS[1]; else strData = ""; // If the 2nd part of the array isn't there, value is non-existent (TXXX...KEY\0\0 or TXXX...KEY\0)

// If unicode is used, there might be BOMs converted to 'ZERO WIDTH NO-BREAK SPACE' character
// (pattern : TXXX-stuff-BOM-ID-\0-BOM-VALUE-\0-BOM-VALUE-\0)
Expand Down

0 comments on commit 5789e88

Please sign in to comment.