2014-07-08 2 views
0

저는 Traktor에서 제공하는 노래 정보를 정리하기 위해 C#에서 간단한 프로그램을 작성하고 있습니다. 내가 아는 한 Traktor는 ID3 태그에서이 데이터를 얻습니다.TagLib : RemixedBy 필드에 문자열 쓰기

지금 문제는 TagLib를 통해 "Remixed By/Modified By"필드를 처리하는 방법을 모른다는 것입니다. TagLib 인스턴스 (track.Tag. [options])의 가능성을 검사 할 때 적합한 옵션이 없습니다.

제목과 아티스트에 관해서는 성공적이었습니다. 정보는 파일 이름에서 가져옵니다. 여기에 그 코드가 있습니다 :

 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) 사양에 따라

답변

0

과 관련, 리믹스에 대한 정보가 텍스트 정보 프레임에 속하는 :

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. 

출처 : 그것 봐 가지고위한 http://id3.org/id3v2.3.0

+0

타이. TagLib을 사용하여 프레임 ID를 사용하여 주소 지정/사용/편집하는 방법을 알지 못했지만 그 방향으로보고있었습니다. – bitwave

+0

어쩌면이 대답의 코드 (C++)로 아이디어를 얻을 수 있습니다. http://stackoverflow.com/questions/16628798/taglib-how-to-edit-albumartist/16630372 – PeterCo