Python Script to Save time on organizing files for Music - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Development (https://forum.jellyfin.org/f-development) +--- Forum: Server Development (https://forum.jellyfin.org/f-server-development) +--- Thread: Python Script to Save time on organizing files for Music (/t-python-script-to-save-time-on-organizing-files-for-music) |
Python Script to Save time on organizing files for Music - jamshou - 2023-12-09 Wrote a python script that'll help show your albums on the UI client by organizing your directories (per JellyFin Documentation: Music | Jellyfin ) ***CAUTION: This was made in a couple minutes, so there are bugs, just maybe keep a backup somewhere in case your library is changed too much. *** It is a really crude approach until there is an update that can handle this much better. It'll do a lot of the work of organizing your library, you will just have to account for feature artists and deluxe edition albums with regular edition albums. The metadata will take a while to update if you do a full reinstall of images. It would go something like this for feature artist(s) and still show in the same album. Main Artist -> Secondary Artist -> Third Artist (or Secondary Artist's band) -> Album Blue -> Song 1 -> Album Blue -> Song 2 Prereqs/Steps: - Have Python 3.12.0 (or similar) - Make sure you have mutagen library installed. (pip install mutagen) - Point to the correct directory in the code (Line 32) - run command: python organize_mp3.py Tinker around with the code if you'd like, it's a simple script. It ignores song count, I was getting errors, so you might lose that in the process. RE: Python Script to Save time on organizing files for Music - TheDreadPirate - 2023-12-09 Would you be able to set up a git for this? I'm sure I'm not the only person concerned about downloading a random zip file. |