UPC=$1

IMAGES_PATH=../../public/images

echo -e "Artwork Asset Copying for UPC $UPC"

echo -e "\ndownloading coverart..."
wget -nv http://www.theorchard.com/images/lg_coverart/$UPC.jpg
echo -e "moving downloaded file to images directory..."
mv $UPC.jpg $IMAGES_PATH/lg_coverart

echo -e "\ndownloading posterart..."
wget -nv http://www.theorchard.com/images/lg_coverart_10/$UPC.jpg
echo -e "moving downloaded file to images directory..."
mv $UPC.jpg $IMAGES_PATH/lg_coverart_10

echo -e "\ndownloading coverart thumbnail..."
wget -nv http://www.theorchard.com/images/coverart/c_$UPC.jpg
echo -e "moving downloaded file to images directory..."
mv c_$UPC.jpg $IMAGES_PATH/coverart

echo -e "\ndownloading posterart thumbnail..."
wget -nv http://www.theorchard.com/images/coverart_10/c_$UPC.jpg
echo -e "moving downloaded file to images directory..."
mv c_$UPC.jpg $IMAGES_PATH/coverart_10

echo -e "\nArtwork Asset Copying for UPC $UPC is complete.\n\n"

