mp3 Sorter

2021-11-29

The Dilemma

As always, follow this link to see the GitHub repository.

Perhaps you've found yourself in a similar position: your media library is constantly growing, but somehow the result has been a heap of loose files in your music folder — no artist or album folders at all.

Before

I recently had this dilemma, and the thought of manually creating folders and sorting them all into their proper locations seemed like a painful task.

Instead, I opted to take what I had recently been learning in Python to create a less intensive — and more fun — solution to this problem.

After

What does it do?

At its core, the script checks each file for an artist, creates a matching folder, then plops that files where it belongs. The real key to accessing the artist information was with the eye3D package. With this, it was easy to grab metadata from music files and put it to use.

For my immediate use, this worked like a charm, and I was satisfied—at first. Now I have a to-do list of features that I'm hoping to add.

To-Do

  • A decent GUI
    • I'm thinking of using 'tkinter' for this.
  • An option to select file paths
    • Right now, you place it in the desired folder and run from there.
  • Album folders
    • Why not? eye3D should continue to be useful here.
  • Interjections
    • If there's no metadata, let's allow the user to add some.
  • Other filetypes
    • I targeted only mp3 files to keep it simple, but why not expand the scope?

Update:

I worked on this more over Christmas 2021. You can see the updated post at this link.