From 005cc257d7fc96c142470253fb8cd2807c9175cb Mon Sep 17 00:00:00 2001 From: Grigory Chudov Date: Sun, 11 Feb 2018 14:07:49 -0500 Subject: [PATCH] Improve track number tags format in id3v2 --- taglib-sharp/src/TagLib/Id3v2/Tag.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taglib-sharp/src/TagLib/Id3v2/Tag.cs b/taglib-sharp/src/TagLib/Id3v2/Tag.cs index 639fccc..b70ec30 100644 --- a/taglib-sharp/src/TagLib/Id3v2/Tag.cs +++ b/taglib-sharp/src/TagLib/Id3v2/Tag.cs @@ -522,7 +522,7 @@ namespace TagLib.Id3v2 { RemoveFrames (ident); } else if (count != 0) { SetTextFrame (ident, string.Format ( - CultureInfo.InvariantCulture, "{0}/{1}", + CultureInfo.InvariantCulture, count > 9 && number > 0 ? "{0:00}/{1}" : "{0}/{1}", number, count)); } else { SetTextFrame (ident, number.ToString (