A modified version of a tool I build for Radio Tux. It simply tags ogg, MP3 and MP4 files. This version is for Tim Pritlove
Pull request Compare This branch is 2 commits ahead, 26 commits behind n1m3:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



Prittag is a modified version of a tool I build for Radio Tux. I created this version to serve the request made by Tim Pritlove in the episode 01 of the podcast "Der Lautsprecher" for a tool which could help him with automating his podcasts generation, so he easily could offer multiple audio formats without more work.

It writes the following tags to multiple Ogg, MP3 or MP4 files:

  • album
  • album artist
  • artist
  • comment
  • composer
  • date
  • disk
  • genre
  • lyrics
  • number of disks
  • number of tracks
  • title
  • track

Additionally it can add an albumart (cover) to them and use mp4chaps to embed chapters.

The name was chosen according to the amazing tool prittorrent.



Download it to a place of your choice and install all dependencies.


Prittag expects a XML file and at least one audio file as arguments. The XML file tells prittag which tags it should write into the files and is expected to look like example.xml. By default prittag will perform a white space stripping on every tag and every line of multi line tags. You can enable and disable this as well globally as for every single tag by adding the option "strip-space" and setting it either to "yes" or "no". For example:

<?xml version="1.0" encoding="UTF-8" ?>
<tags strip-space="no">
    <lyrics strip-space="yes">

If you want prittag to use mp4chaps to embed chapters, add a chapters section into the tag like this:

<?xml version="1.0" encoding="UTF-8" ?>
            <title>Test Chapter</title>

Call it from the command line like this: "./prittag.py foo.xml bar.mp3 bar.oga bar.m4a"