#!/bin/bash
echo "Let's install the files that are required..."
sudo aptitude install youtube-dl ffmpeg libavcodec-unstripped-52
echo "Ok! Now we're ready"
echo "Enter the youtube url:"
read VIDEO
echo "Enter the name of the Artist/Band:"
read ARTIST
echo "Enter the name of the Song:"
read TITLE
echo "Let's download the video...."
youtube-dl $VIDEO -o "${ARTIST} - ${TITLE}.flv"
echo "Converting..."
ffmpeg -i "${ARTIST} - ${TITLE}.flv" "${ARTIST} - ${TITLE}.mp3"
echo "Done."
echo "Removing Temp Files..."
rm -rf "${ARTIST} - ${TITLE}.flv"
echo "Done."
echo "MP3 Downloaded Successfully! Have fun!"
echo "Script Made by HeartDoc"

