Fixed a bug cause XNAMEX said to

This commit is contained in:
coolnsx
2023-12-23 23:06:27 +05:30
parent c63af7c0a4
commit 7d98abf325

View File

@@ -29,7 +29,7 @@ fi
. $script_dir/.functions
#check if the url is magnet
! printf "%s" "$magnet" | grep -q "magnet:?xt=urn:btih:" && error_$os "Not a valid magnet link!" && exit 0
! printf "%s" "$magnet" | grep -qE "magnet:\?xt=urn:btih:|torrent" && error_$os "Not a valid magnet link!" && exit 0
trap "rm -f $HOME/.cache/*.torrent;exit 0" INT HUP
echo "$magnet"
printf "${c_yellow}Download>>\n${c_green}[f]ull torrent\n${c_cyan}[p]artial torrent \n${c_red}[q]uit"