mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
You should have trusted me.
This commit is contained in:
2
torrent
2
torrent
@@ -29,7 +29,7 @@ fi
|
|||||||
. $script_dir/.functions
|
. $script_dir/.functions
|
||||||
|
|
||||||
#check if the url is magnet
|
#check if the url is magnet
|
||||||
! printf "%s" "$magnet" | grep -q "magnet:" && error_$os "Not a valid magnet link!" && exit 0
|
! printf "%s" "$magnet" | grep -q "magnet:?xt=urn:btih:" && error_$os "Not a valid magnet link!" && exit 0
|
||||||
trap "rm -f $HOME/.cache/*.torrent;exit 0" INT HUP
|
trap "rm -f $HOME/.cache/*.torrent;exit 0" INT HUP
|
||||||
echo "$magnet"
|
echo "$magnet"
|
||||||
printf "${c_yellow}Download>>\n${c_green}[f]ull torrent\n${c_cyan}[p]artial torrent \n${c_red}[q]uit"
|
printf "${c_yellow}Download>>\n${c_green}[f]ull torrent\n${c_cyan}[p]artial torrent \n${c_red}[q]uit"
|
||||||
|
|||||||
Reference in New Issue
Block a user