Exemplo n.º 1
0
 private void UpdateFrameList(ListTextFrame frame, Encoding srcEncoding)
 {
     for (int i = 0; i < frame.Value.Count; i++)//authors
     {
         frame.Value[i]     = LangUtil.FixEncoding(frame.Value[i], LangEncoding.HebrewEncoding);
         frame.EncodingType = Id3TextEncoding.Unicode;
     }
 }
Exemplo n.º 2
0
        public void UpdateFrame(TextFrameBase fixme, Encoding srcEncoding)
        {
            TextFrame value1 = fixme as TextFrame;

            //_output.WriteLine("Before: Value: {0}, Encoding: {1}", frame.Value, frame.EncodingType);

            if (value1 != null)
            {
                UpdateFrame(value1, srcEncoding);
            }
            else
            {
                ListTextFrame value2 = fixme as ListTextFrame;
                if (value2 != null)
                {
                    UpdateFrameList(value2, srcEncoding);
                }
                else
                {
                    throw new NotImplementedException();
                }
            }
        }