diff --git a/README.md b/README.md index a36046f..0c684e4 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,15 @@ After this it use [peerflix](https://github.com/mafintosh/peerflix) to stream th For scraping script use simple gnu utils like sed, awk, paste, cut. ## Requirements - -* [peerflix](https://github.com/mafintosh/peerflix) - A tool to stream torrent. `sudo npm install peerflix -g` +* [NodeJs] +```sh +curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash - +sudo apt-get install -y nodejs +``` +* [peerflix](https://github.com/mafintosh/peerflix) - A tool to stream torrent. +```sh +sudo npm install peerflix -g +``` ## Installation @@ -24,8 +31,8 @@ For scraping script use simple gnu utils like sed, awk, paste, cut. cURL **notflix** to your **$PATH** and give execute permissions. ```sh -$ sudo curl -sL "https://raw.githubusercontent.com/Bugswriter/notflix/master/notflix" -o /usr/local/bin/notflix -$ sudo chmod +x /usr/local/bin/notflix +sudo curl -sL "https://raw.githubusercontent.com/Bugswriter/notflix/master/notflix" -o /usr/local/bin/notflix +sudo chmod +x /usr/local/bin/notflix ``` - To update, just do `curl` again, no need to `chmod` anymore. - To uninstall, simply remove `notflix` from your **$PATH**, for example `sudo rm -f /usr/local/bin/notflix. diff --git a/notflix b/notflix index 2a63050..3cde9d9 100755 --- a/notflix +++ b/notflix @@ -1,6 +1,6 @@ #!/bin/sh 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) +movie=$(curl -s https://1337x.to/search/$query/1/ | grep -Eo "torrent\/[0-9]*\/[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 -l -k $magnet +peerflix -l -k $magnet --vlc