Bugswriter / notflix

Notflix is a shell script to search and stream torrent.
GNU General Public License v3.0
1.9k stars 175 forks source link

a minor fix and storage optimization #96

Open isg32 opened 1 year ago

isg32 commented 1 year ago

!/bin/sh

cd

sudo rm -fr /tmp/torrent-stream/*

query=$(printf '%s' "$*" | tr ' ' '-' )

movie=$(curl -s https://1337x.to/search/$query/1/ | grep -Eo "torrent/[0-9]{7}/[a-zA-Z0-9?%-]*/" | head -n 1)

magnet=$(curl -s https://1337x.to/$movie | grep -Po "magnet:\?xt=urn:btih:[a-zA-Z0-9]*" | head -n 1)

peerflix $magnet -k

isg32 commented 1 year ago

peer flix moved [OPTIONS] to the back, added new url and clean the tmp dir