yt-dl-send-notify.sh
09cd128d
 #!/bin/bash
 
 #This schows new Viedoclips. Script is tested with Kubuntu 19.10 and uses notify-send Popup-Window
 #dl_folder should be the same as in youtube-dl.sh
 #if you use the default,you need not edit this script.
95e05eab
 #If you want to be remembered regulary there is a line for your user crontab
09cd128d
 
 #0 *  * * *  XDG_RUNTIME_DIR=/run/user/$(id -u) /home/foo/bin/yt-dl-send-notify.sh
 
 dl_folder=~/Downloads/youtube-dl/
 f=$(find $dl_folder -mtime 0 -type f -regex '.*\.\(mkv\|mp4\|wmv\|flv\|webm\|mov\)')
cbc9235d
 if [ -z "$f" ]
 then exit
 else
95e05eab
 folder1="$(echo $dl_folder|sed "s/\//\\\\\//g")"
 sedarg="sed s/$folder1/\n/g"
 f=$(echo "$f"|$sedarg)
 notify-send "Neue Videos": "$f" --icon=video-x-generic
cbc9235d
 fi