From 7d98abf325aca1b0d8f6067bc126cc49d64b6409 Mon Sep 17 00:00:00 2001 From: coolnsx Date: Sat, 23 Dec 2023 23:06:27 +0530 Subject: [PATCH] Fixed a bug cause XNAMEX said to --- torrent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torrent b/torrent index bcd7e3e..17d6b50 100755 --- a/torrent +++ b/torrent @@ -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"