Obsolete
SharpTagger is obsolete and remains here for historical reasons only. Please check out TagLib# for your .NET tagging purposes. It is 100% managed code and used by popular projects such as Banshee.
SharpTagger is obsolete and remains here for historical reasons only. Please check out TagLib# for your .NET tagging purposes. It is 100% managed code and used by popular projects such as Banshee.
People love TagLib, a lot. It's not hard to see why, as it is a very sexy library. The only problem is that the default abilities are below what Muine needs. As such, this library is a glorious collection of hacks which built into one beautiful class, which provide above and beyond for all of Muine's needs. (Except for m4a, but no one's perfect.) To see this baby in action, install this and MuineTagger, and take it for a spin.
wget http://www.public.asu.edu/~bnickel/SharpTagger/SharpTagger-1.1.1.tar.bz2 tar -xvjf SharpTagger-1.1.1.tar.bz2 cd SharpTagger-1.1.1 ./configure --prefix=/usr && make && sudo make install
// SetArtists.cs
using System;
class SetArtists
{
public static void Main (string [] args)
{
if (args.Length < 2)
throw new Exception ("Usage: mono SetArtist.exe album file [file2 ...]");
char [] splitter = {'/'};
string [] artists = args [0].Split (splitter);
SharpTagger.Tag tag = new SharpTagger.Tag ();
tag.ScanAudio = false;
for (int i = 1; i < args.Length; i ++)
if (tag.Open (args [i]))
{
tag.Artists = artists;
tag.Close (true);
}
}
}
---------------------------
mcs SetArtists.cs /pkg:sharp-tagger
---------------------------
mono SetArtists.exe "Artist 1/Artist 2/Artist 3" *.mp3