Created
March 20, 2020 00:34
-
-
Save cirrusUK/4b2fa4d9ce022e94f311dd21f961af82 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# deps: sacad feh fancy_audio [rubygem] | |
# opt deps: optipng jpegoptim | |
tput setaf 5 | |
read -p "enter name of artist album art: " artist | |
tput setaf 1 | |
read -p "enter name of the album requiring art: " album | |
tput setaf 6 | |
~/venv/bin/sacad -v normal "${artist}" "${album}" 150 ~/"${album}.jpg" | |
read -p "View Downloaded Album Art $fehview? [yn] " answer | |
if [[ $answer = y ]] ; then | |
fehview=$(feh ~/"${album}.jpg" ) | |
fi | |
tput setaf 2 | |
read -p "enter path of .mp3 file to embed art: " embed | |
fancy_audio "${embed}" ~/"${album}.jpg" | |
tput setaf 3 | |
echo -n " yay ! "${album}.jpg" now embedded into "${embed}" " | |
echo '' | |
read -p "Delete Downloaded Album Art $artdel? [yn] " answer | |
if [[ $answer = y ]] ; then | |
artdel=$(rm ~/"${album}.jpg" ) | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment