adding notification when download begins

This commit is contained in:
Djan GICQUEL 2022-05-22 20:53:34 +02:00
parent b4ed7c550a
commit 4aceb9b0ac
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ youtubedlbinary="$HOME/bin/yt-dlp"
cd $dir
url=$(zenity --width 500 --entry --title "url à télécharger")
$youtubedlbinary $url
$youtubedlbinary $url &
notify-send -i ~/.icons/youtube.png "yt-dlp" "Téléchargement commencé ($url)"
if [ "$?" != "0" ]; then
echo "Erreur, le script va s'arreter."
notify-send -i ~/.icons/youtube.png "yt-dlp erreur" "Une erreur est survenue dans le téléchargement de $url"