Tools to organize a music collection based on ID3 tags.
Supported filetypes: mp3
, m4a
, wma
All other files are ignored and not moved
$ python organize.py --input-dir some-dir --output-dir some-other-dir
Will copy any supported files into output dir using the following rules:
- If album artist is set, and album artist is not
Various
orSoundtrack
- Target:
output_dir/album artist/album name/filename
- Target:
- Else if album artist is
Various
orSoundtrack
- Target:
output_dir/album name/filename
- Target:
- Else if artist set
- Target:
output_dir/artist/album name/filename
- Target:
- Else:
- Target:
output_dir/unknown/old parent dirname/filename
- Target: