From 145b425706a6c221130bfc01b64ea13b5db3258f Mon Sep 17 00:00:00 2001 From: ricky-aufvaa Date: Tue, 8 Feb 2022 19:17:33 +0530 Subject: [PATCH 1/2] uses the pirate bay instead --- notflix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notflix b/notflix index 81dc32a..6bf52f6 100755 --- a/notflix +++ b/notflix @@ -1,6 +1,6 @@ #!/bin/sh -query=$(printf '%s' "$*" | tr ' ' '+' ) -movie=$(curl -s https://1337x.wtf/search/$query/1/ | grep -Eo "torrent\/[0-9]{7}\/[a-zA-Z0-9?%-]*/" | head -n 1) -magnet=$(curl -s https://1337x.wtf/$movie | grep -Po "magnet:\?xt=urn:btih:[a-zA-Z0-9]*" | head -n 1) +query=$(printf '%s' "$*" | sed 's/ /\%20/g') +curl -s -o url.html https://thepiratebay.party/search/$name/1/99/200 + magnet=$(cat url.html|grep -E 'magnet\:\?'|sed 's/href\=/ /g'|awk '{print $2}'|sed 's/"/ /g'| head -n 1|sed 's/ //g') peerflix -l -k $magnet From 97d385d89a5df628ab3f384249154ffe9796d681 Mon Sep 17 00:00:00 2001 From: ricky-aufvaa <73901766+ricky-aufvaa@users.noreply.github.com> Date: Tue, 8 Feb 2022 19:22:15 +0530 Subject: [PATCH 2/2] Update notflix --- notflix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notflix b/notflix index 6bf52f6..5f85304 100755 --- a/notflix +++ b/notflix @@ -1,6 +1,6 @@ #!/bin/sh -query=$(printf '%s' "$*" | sed 's/ /\%20/g') +name=$(printf '%s' "$*" | sed 's/ /\%20/g') curl -s -o url.html https://thepiratebay.party/search/$name/1/99/200 magnet=$(cat url.html|grep -E 'magnet\:\?'|sed 's/href\=/ /g'|awk '{print $2}'|sed 's/"/ /g'| head -n 1|sed 's/ //g') peerflix -l -k $magnet