This project allows you to add album cover images and other metadata to your local music files easily. It uses the Spotify API to retrieve metadata for your music files, and then adds the album covers and other information to the music files automatically.
✅ UPDATE: Now ADD-MUSIC-COVERS
supports adding following metadata to your files as well.
- Song Title
- Artist
- Album
- Genre
- Year
- Track Number
-
Clone the repository:
git clone https://github.com/Dilshan-H/Add-Music-Covers.git
-
Navigate to the project directory:
cd Add-Music-Covers
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
- Windows:
venv\Scripts\activate
- Linux:
source venv/bin/activate
- Windows:
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a Spotify application - Find More Info
-
Copy the Client ID and Client Secret of your Spotify application and paste them as follows within a new file named
.env
in the project directory:CLIENT_ID=your_client_id CLIENT_SECRET=your_client_secret
-
Create a directory named
songs
in the project directory and add your music files to it. -
Run the script:
python3 main.py
-
The script will automatically add the album covers to the song files in the
songs
directory. Just follow the instructions in the terminal.
The MIT License
This program is free software: you can redistribute it and/or modify it under the terms of the MIT License Refer to the LICENSE file for more details.
Spotify copyrights and/or trademarks of their respective owners.
If you would like to contribute to this project, you can follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b my-branch
- Make your changes and commit them:
git commit -m "my changes"
- Push your changes to your fork:
git push origin my-branch
- Create a pull request.
We welcome all contributions!
This project uses the Spotify API to retrieve album covers for music files. Please note that the use of the Spotify API is subject to certain limitations and restrictions, as outlined in the Spotify Developer Terms of Service.
This project is not affiliated with or endorsed by Spotify, and the use of Spotify's API and trademarks does not imply any endorsement or affiliation with Spotify.
By using this project, you agree to comply with all applicable laws and regulations, including the Spotify Developer Terms of Service and any other terms and conditions imposed by Spotify. The author of this project is not responsible for any misuse or violation of Spotify's terms and conditions.