[edit] Added fancy_audio intergration for a more streamlined approach to downloading and embedding album art.
added option to view downloaded image with feh before proceeding with embedding.
#!/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 ''
tput setaf 1
read -p "Delete Downloaded Album Art $artdel? [yn] " answer
if [[ $answer = y ]] ; then
artdel=$(rm ~/"${album}.jpg" )
fi
#!/usr/bin/env bash
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"
tput setaf 2
echo -n " yay ! "${album}.jpg" album art will be in your home directory."
#!/usr/bin/env bash
# This is just a simplistic wrapper script for sacad album art downloader
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
blue=`tput setaf 4`
magenta=`tput setaf 5`
cyan=`tput setaf 6`
tput setaf 5
echo -n "enter name of artist : "
read "artist"
url="$artist"
tput setaf 1
echo -n "enter name of album requiring art : "
read "album"
url="$album"
tput setaf 6
~/venv/bin/sacad -v normal "${artist}" "${album}" 150 ~/"${album}.jpg"
tput setaf 2
echo -n " yay ! "${album}.jpg" album art will be in your home directory."
exit
sacad
fancy_audio
sacad-git
#TODO integrate fancy_audio to auto embed downloaded art.