This commit is contained in:
CoolnsX
2021-11-30 20:17:15 +05:30
parent f102e6bbd1
commit 439a85b8d8
3 changed files with 16 additions and 7 deletions

11
torrent
View File

@@ -1,11 +1,18 @@
#!/bin/sh
if [ -z "$*" ]; then
magnet="$(xclip -out clipboard)"
magnet="$(cat .cache/maglink)"
else
magnet=$*
fi
printf "Enter Directory (default:MOVIES) :"
read x
if [ -z "$x" ]; then
x="MOVIES"
fi
notify-send "Torrent:Rukk ja Download ho rha hai"
echo "$magnet"
aria2c -d MOVIES --seed-time=0 "$magnet" && notify-send "Torrent:cheecha download hogyi" || notify-send -u critical "Torrent:cheecha error!!"
aria2c -d $x --seed-time=0 "$magnet" && notify-send "Torrent:cheecha download hogyi" || notify-send -u critical "Torrent:cheecha error!!"