Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望使用 C# 从 .mp3 文件中去除 ID3v1、ID3v2.x 标签。我宁愿自己不实现它——而是使用一些久经考验的东西。
TagLibSharp 看起来非常适合创建标签 - 但如何使用它来删除它们?如果有任何其他图书馆更适合这个我会使用它。
使用 TagLibSharp RemoveTags() 方法。
file.RemoveTags(tagtypes);
其中 tagtypes 是要删除的标签的 TagType 位掩码。对于 Id3v1 和 Id3v2,请尝试
file.RemoveTags(TagTypes.Id3v1 && TagTypes.Id3v2);