regosen / get_cover_art

Batch cover art downloader and embedder for audio files
MIT License
69 stars 8 forks source link

Sample Example #1

Closed Noor-Kalibbala closed 3 years ago

Noor-Kalibbala commented 3 years ago

please can u add a simple example of getting artwork for a file

regosen commented 3 years ago

Thanks for the suggestion @Noor-Kalibbala , I've just added support for using a single file instead of a folder. I also updated the README accordingly:

Here's a single-file example from the commandline:

python -m get_cover_art --path=<PATH_TO_AUDIO_FILE>

And here's an example from the Python environment:

from get_cover_art import CoverFinder
finder = CoverFinder()
finder.scan_file(PATH_TO_AUDIO_FILE)

Where PATH_TO_AUDIO_FILE can be an absolute path or a relative path.

If you update to the latest version of get_cover_art, you should be able to run with the above examples.

Noor-Kalibbala commented 3 years ago

@regosen thank u for your feedback 🙏