Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Zeugma440/atldotnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeugma440 committed Jun 15, 2018
2 parents f803ae2 + 5789e88 commit ae07ec2
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 ae07ec2

Please sign in to comment.