Update ytdl2

This commit is contained in:
ccppi 2024-03-14 08:26:22 +00:00
parent 33a2727034
commit ccabd90723

7
ytdl2
View File

@ -2,19 +2,12 @@
#kdialog youtube-dl #kdialog youtube-dl
folder=$(date +"%m_%Y") folder=$(date +"%m_%Y")
cd ~/Music/ cd ~/Music/
mkdir $folder mkdir $folder
cd $folder cd $folder
url=$(kdialog --title "Input dialog" --inputbox "Paste youtube link") url=$(kdialog --title "Input dialog" --inputbox "Paste youtube link")
echo "eingegebener link: " $url echo "eingegebener link: " $url
youtube-dl -i --extract-audio --audio-format vorbis -o "%(title)s.%(ext)s" $url youtube-dl -i --extract-audio --audio-format vorbis -o "%(title)s.%(ext)s" $url
kdialog --title "the link "$url" has finished" --passivepopup \ kdialog --title "the link "$url" has finished" --passivepopup \
"Download and conversion finnished" 10 "Download and conversion finnished" 10