I'm making a simple YouTube video to MP3 script (in bash) and is there any way that if I enter
[quote]yt2mp3 --keep-vid[/code]
It will also keep the downloaded YouTube video?
Current script:
Code:#!/bin/bash echo "Enter the URL of the YouTube video to start downloading." read VIDEO echo "Downloading..." rm -rf "tmp.flv" youtube-dl $VIDEO -o "tmp.flv" clear echo What is the artist of the song? read ARTIST echo echo What is the name of the song? read NAME echo ffmpeg -i "tmp.flv" "${ARTIST} - ${NAME}.mp3" rm -rf "tmp.flv" echo echo "YouTube video converted! Yay!"
Bookmarks