C# TagLib:将字符串写入RemixedBy字段
我正在用C编写一个简单的程序来整理Traktor提供的歌曲信息。据我所知,Traktor从ID3标签中获取这些数据 现在的问题是,我不知道如何通过TagLib处理“Remixed By/Modified By”字段。当我检查TagLib实例(track.Tag.[options])的可能性时,没有合适的选项 就标题和艺术家而言,我是成功的。信息来自文件名。以下是执行此操作的代码:C# TagLib:将字符串写入RemixedBy字段,c#,taglib,id3,C#,Taglib,Id3,我正在用C编写一个简单的程序来整理Traktor提供的歌曲信息。据我所知,Traktor从ID3标签中获取这些数据 现在的问题是,我不知道如何通过TagLib处理“Remixed By/Modified By”字段。当我检查TagLib实例(track.Tag.[options])的可能性时,没有合适的选项 就标题和艺术家而言,我是成功的。信息来自文件名。以下是执行此操作的代码: TagLib.File track = TagLib.File.Create(selectedSon
TagLib.File track = TagLib.File.Create(selectedSongFullPath);
TitleToBeChecked = Path.GetFileNameWithoutExtension(selectedSongFullPath);
if (TitleToBeChecked.Contains("-"))
{
int hyphenIndex = TitleToBeChecked.IndexOf("-");
string title = TitleToBeChecked.Substring(hyphenIndex + 1).Trim();
string contributingArtists = TitleToBeChecked.Substring(0, hyphenIndex).Trim();
track.Tag.Title = title;
string[] contributingArtistsArray = {contributingArtists};
track.Tag.Performers = contributingArtistsArray;
track.Save();
}
任何帮助都将不胜感激
种类问候根据id3(v2)规范,有关混音的信息属于文本信息框:
TPE4
The 'Interpreted, remixed, or otherwise modified by' frame contains more information about the people behind a remix and similar interpretations of another existing piece.
资料来源:Ty,谢谢你看一看。我也一直在朝这个方向看,虽然我不知道如何通过使用带有TagLib的frameid来寻址/使用/编辑。也许这个答案中的代码(C++)可以给你一个想法: