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.
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.
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.
I worked on this more over Christmas 2021. You can see the updated post at this link.