TagLib没有保存ID3标签

问题描述

我对TagLibSharp v2.2.0有问题。 我一直在互联网上寻找解决方案。在此过程中,我发现了类似可以强制TagLib保存在特定版本中

TagLib. Id3v2. Day. DefaultVersion = 3;
TagLib. Id3v2. Day. ForceDefaultVersion = true;

文件扩展名为.mp3,但不是正确的Mp3文件,可能是这样。我查看了一个十六进制编辑器,我的文件开始于49 44 33,因此它也应该是正确的Mp3文件。

TagLib.Id3v2.Tag.DefaultVersion = 3;
TagLib.Id3v2.Tag.ForceDefaultVersion = true;

var Mp3File = TagLib.File.Create(customPath,TagLib.ReadStyle.Average);

Mp3File.Tag.Performers = new string[] { "Billy Bob" };
Mp3File.Tag.Title = "Silly Job";

//If I display a messagebox at the point here,which shows the Performers and Title of the Mp3File
//it shows the correct text (Billy Bob,Silly Job)
MessageBox.Show($"{Mp3File.Tag.Performers},{Mp3File.Tag.Title}");

Mp3File.Save();
Mp3File.Dispose();

运行代码时,没有例外,但是当我查看文件详细信息时,没有任何变化。 有谁知道这可能是什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...