Stefan's blag and stuff

Projects — mp3sort.py: MP3 file sorter

mp3sort.py

Simple program to sort MP3 files into the folder hierarchy

<output dir>/<artist>/<album>/<track>.mp3

I used it to sort thousand of MP3 files recovered by 'photorec' (http://www.cgsecurity.org/wiki/PhotoRec). To run the script you have to install python3, mp3info and id3v2.

debian: $ sudo apt-get install python3 id3v2 mp3info

Usage:

mp3sort.py [--dry-run] <input directory> <output directory>

It's save to reexecute the script multiple times. It will not overwrite existing files.

The script can handle ID3v1 and to some extend ID3v2.y tags. It depends on the external programs mp3info and id3v2.

Repository

You can clone the git repository using the command:

git clone https://git.stefanchrist.eu/mp3sort.git

License

GPLv3 or later. See file header in file mp3sort.py.

Releases