torrentid=$1
torrentname=$2
torrentpath=$3
from this script:
Code: Select all
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PATH="/snap/bin:$PATH"
export DISPLAY=:0
torrentid=$1
torrentname=$2
torrentpath=$3
if [[ $torrentpath == "/media/storage/Downloads/TVToProcess" ]] ; then
bash /home/pixelburst/bin/tv.sh
bash /home/pixelburst/bin/notification.sh $@
elif [[ $torrentpath == "/media/storage/Downloads/AnimeToProcess" ]] ; then
bash /home/pixelburst/bin/anime.sh
bash /home/pixelburst/bin/notification.sh $@
elif [[ $torrentpath == "/media/storage/Downloads/MoviesToProcess" ]] ; then
bash /home/pixelburst/bin/movies.sh
bash /home/pixelburst/bin/notification.sh $@
else
:
fi
Code: Select all
#!/bin/bash
torrentid=$1
torrentname=$2
torrentpath=$3
curl -v -k -X POST \
--data-urlencode 'payload={"text":":white_check_mark: *Deluge - File Completed!* \n'$torrentname' \nFile download completed! \n---------------------------------"}' \
"link to notification service"
thanks in advance for all your help!