コード例 #1
0
 public void CreateMediaInfo(string path, ITrackCollection media)
 {
     try
     {
         var info = MediaInfo
                    .Create(media.MediaType)
                    .BuildContent(media);
         var fileName = Path.Combine(path, info.Name);
         AthameWriter.Write(fileName, info);
     }
     catch (Exception ex)
     {
         Log.Warning(ex, "Exception occurred when writing mediainfo file.");
     }
 }