If you are bored of looking at a lame cover photo while browsing through your songs which doesn't even matches the song or it is the logo of the website from where you have downloaded that mp3 file.
This application will find all the .mp3 file in your computer and automatically scrape a suitable cover from google images and apply it to the mp3 file.
These instructions will help you run this application in your local machine.
As the script is written in python, you need to download Python on your system, specifically Python 3.x or latest. Its installer can be downloaded from here. Linux Users: Open Terminal and type
sudo apt-get install python3.6
- Fork this repository and then clone the repository to your local system using
git clone
or extract the downloaded zip file.
- Run requirements.txt on command prompt/shell using pip
pip install -r requirements.txt
- Install the following modules using pip (Optional)
pip install python-magic-bin
if error related to image or ImageTk still persists, run the following commands:
pip install image
For Linux systems, run the given command on shell:
sudo apt-get install python3-pil.imagetk
To activate this project's virtualenv, run pipenv shell
.
Alternatively, run a command inside the virtualenv with pipenv run
.
usage: main.py [-h] [--silent] [--no-gui | --overwrite] [path]
Add Cover Art: This application will find the .mp3 files in your computer.
Then it will automatically scrape a suitable cover from google images and
apply it as a cover art to the mp3 file.
positional arguments:
path file or directory to be processed (default: current directory)
optional arguments:
-h, --help show this help message and exit
--silent don't show console output
--no-gui don't use a gui and overwrite current cover art from a list of choices
--overwrite use gui and overwrite current cover art from a list of choices
if no optional argument is specified, the gui is enabled and overwrite is
disabled
Note:
- not including
--overwrite
argument adds the current cover art (if present) at the start of the chain of available images. --no-gui
argument doesn't display gui and adds the first available image as cover art
Usage:
- Run command prompt or linux shell
- Change directory into the directory containing the
.mp3
files - Run the script
- Press the ⇦ and ⇨ keys to browse an image that you may like.
- Press Apply Button to set the image as the cover photo if you like it.
- Press Next Button to process another .mp3 file
- Press Cancel Button to close the application.
- If you are unhappy with the images suggested, enter your own query into the search box and press Search