You are not logged in.

#1 2010-10-27 18:47:33

Mineo
Member
From: Germany
Registered: 2009-12-13
Posts: 24
Website

pymbtag - a music tagger

Hi there. After getting sick of Picard writing zillions of tags into my music files, I decided to write a little script myself. So here it is: pymbtag (hooray to my creativity!). The data used still comes from musicbrainz.org, but only a few tags are written. MP3, FLAC and Ogg are supported.

These are:

  • Artist

  • Album

  • Tracknumer

  • Title (of the track)

  • Year (only the year, not the complete release data)

  • Discnumber (only if there's "(disc x)" in the title of the album)

  • Musicbrainz Album ID (if you ever want to tag the album again)

  • Albumartist (if it's "Various Artists") [MP3 gets a "TXXX=ALBUMARTISTSORT" AND a "TPE2" {used by MPD} tag]

Dependencies
python 2.x
mutagen
python-musicbrainz2

Installation
Use the AUR package pymbtag.
Or get the source code from github:
git clone git://github.com/mineo/pymbtag.git

Usage
It's supposed to be run on a folder with only 1 (one) album in it, multiple albums might eat your kitten.
There are only a few simple switches:

  -m MBID, --mbid=MBID  The MBID of the release
  -d DIR, --dir=DIR     The directory the files are in
  -l, --load-from-files
                        Load the MBID from the files in the directory

You must specify -d and either -m or -l.
If there's more than one release event for the album, you can choose one of them.

Note: If you like, please contribute data to Musicbrainz or donate some money to them. If there are some problems with the script, feel free to tell me. If there are no problems, feel free to tell me, too.

Offline

#2 2010-10-28 01:11:38

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: pymbtag - a music tagger

So this script isn't good for tagging individual tracks?

Offline

#3 2010-10-28 06:35:54

Mineo
Member
From: Germany
Registered: 2009-12-13
Posts: 24
Website

Re: pymbtag - a music tagger

It works on individual  tracks, but only if you have one individual track in the folder. The association of the files to the musicbrainz data is done via the tracknumber, which seemed the easiest way to me (and I don't really have single tracks lying around on my HDD).

Offline

Board footer

Powered by FluxBB