Opps I didn't realize the download link wasn't static. Slight update, notice the mv at the bottom.
Code:
#!/bin/bash
#set -x
clear
echo "Please, enter song link"
read SONGID
wget $SONGID
SONGID="`echo $SONGID | cut -d= -f2`"
echo "Ok, going to download now..."
clear
wget -nv http://www.goear.com/files/xmlfiles/${SONGID:0:1}/secm$SONGID.xml
if [ ! -f secm$SONGID.xml ]
then
echo "Hmm, can't find the song."
else
echo "Downloading song..."
SONGPATH=`grep -o "http://.*mp3" secm$SONGID.xml`
SONGNAME=`echo $SONGPATH`
SONGTITLE=`grep -m1 "<title>" listen.php\?v\=${SONGID}| cut -d'>' -f2 | cut -d'-' -f1,2 | sed 's/ /\ /g'`
wget $SONGPATH
echo "Download of \""$SONGTITLE"\" has finished! :-)"
fi
mv "${SONGNAME//*\/}" "$SONGTITLE.mp3"
rm -f secm$SONGID.xml*
rm -f listen.php\?v\=${SONGID}*