Last active
August 19, 2024 17:58
-
-
Save chabala/5627afc8f6e43ba101012590deb97b34 to your computer and use it in GitHub Desktop.
add album art to audio files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o xtrace | |
set -o errexit | |
set -o nounset | |
if ! [ -x "$(command -v eyeD3)" ]; then | |
# ubuntu package is old, try `pip install eyeD3[display-plugin]` | |
sudo apt install eyed3 | |
fi | |
audio="${1}" | |
image="${2}" | |
eyeD3 --add-image "${image}:FRONT_COVER" "${audio}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment