Open isg32 opened 1 year ago
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
peer flix moved [OPTIONS] to the back, added new url and clean the tmp dir
!/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