Skip to content

Convert ID3 tags in MP3 files(but not only) from ANSI to unicode format

Notifications You must be signed in to change notification settings

RandallFlagg/id3_ANSI2Unicode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ID3 ANSI2Unicode Convert

ID3 ANSI2Unicode Convert for .NET Core

Throughput Graph

License: MIT Pull Requests Welcome subject-music-data id3 Build status

ID3 ANSI2Unicode Convert for .NET Core is an effort to port an entire mp3 library from ANSI encoding to Unicode in order to have better support using modern players that don't support ANSI.

This utility uses the IDSharp for.NET Core library but it can also be used with the id3 library, if wanted for any reason.

NOTE - The code in this repo has not been thoroughly tested.

This version of the utility should support .NET Core 1.1 and 2.0, as well as .NET Standard 1.3, 1.5 and 2.0 but was tested only against 2.x.

Future Plans

  • A javascript version; probably based on Node.js

Getting Started or Wanting to Help

  1. Fork and/or Clone this repo to a desired location(e.g. C:\Projects\ID3)
  2. Fork or Clone the following repo to the same location as above(e.g. C:\Projects\ID3): https://github.com/RandallFlagg/IdSharpCore
  3. Try the example below to get started

Example

using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;

namespace Example
{
    class Program
    {
        public static void Main(string[] args)
        {
            Console.WriteLine("Start Converting!");
            IID3Converter converter = new ID3SharpConverter();
            var recursive = false;
            var configuration = (
                path: @"C:\My Audio Files",
                ext: "*.mp3",
                searchOption: recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly
            );

            if (converter.Init(configuration))
            {
                Console.WriteLine("Before:");
                converter.PrintTag();

                converter.Execute();

                Console.WriteLine("After:");
                converter.PrintTag();

                Console.WriteLine("Done Converting!");
            }
        }
    }
}

Releases

No releases published

Packages

No packages published

Languages