This script organizes your music files by artist or album.
- Python 3.x
mutagen
library
You can install the required library using pip:
pip install mutagen
- Clone the repository or download the script.
- Open a terminal and navigate to the directory containing
musicorganize.py
. - Run the script:
python
musicorganize.py
- Follow the prompts to provide the path to your music folder and choose how you want to organize your music (by artist or album).
What is the path to your music folder? /path/to/your/music
How would you like to organize your music? (artist/album) artist
The script will organize your music files and delete any empty folders.
sanitize_folder_name
: Sanitizes folder names to remove invalid characters.organize_music
: Organizes music files by artist or album.delete_empty_folders
: Deletes empty folders in the music directory.get_valid_path
: Prompts the user for a valid path.get_valid_organize_by
: Prompts the user for a valid organize_by option.main
: Main function to organize music files.
This project is licensed under the MIT License.
This `README.md` file provides a clear guide on how to use the script, including installation, usage, and a brief description of the functions.