Improve track number tags format in id3v2

This commit is contained in:
Grigory Chudov
2018-02-11 14:07:49 -05:00
parent 6231a6f770
commit 005cc257d7

View File

@@ -522,7 +522,7 @@ namespace TagLib.Id3v2 {
RemoveFrames (ident); RemoveFrames (ident);
} else if (count != 0) { } else if (count != 0) {
SetTextFrame (ident, string.Format ( SetTextFrame (ident, string.Format (
CultureInfo.InvariantCulture, "{0}/{1}", CultureInfo.InvariantCulture, count > 9 && number > 0 ? "{0:00}/{1}" : "{0}/{1}",
number, count)); number, count));
} else { } else {
SetTextFrame (ident, number.ToString ( SetTextFrame (ident, number.ToString (