Skip to content

Commit 3933d28

Browse files
authored
Update regex and readme
1 parent 018943d commit 3933d28

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,24 @@ After this it use [peerflix](https://github.com/mafintosh/peerflix) to stream th
1515
For scraping script use simple gnu utils like sed, awk, paste, cut.
1616

1717
## Requirements
18-
19-
* [peerflix](https://github.com/mafintosh/peerflix) - A tool to stream torrent. `sudo npm install peerflix -g`
18+
* [NodeJs]
19+
```sh
20+
curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash -
21+
sudo apt-get install -y nodejs
22+
```
23+
* [peerflix](https://github.com/mafintosh/peerflix) - A tool to stream torrent.
24+
```sh
25+
sudo npm install peerflix -g
26+
```
2027

2128
## Installation
2229

2330
### cURL
2431
cURL **notflix** to your **$PATH** and give execute permissions.
2532

2633
```sh
27-
$ sudo curl -sL "https://raw.githubusercontent.com/Bugswriter/notflix/master/notflix" -o /usr/local/bin/notflix
28-
$ sudo chmod +x /usr/local/bin/notflix
34+
sudo curl -sL "https://raw.githubusercontent.com/Bugswriter/notflix/master/notflix" -o /usr/local/bin/notflix
35+
sudo chmod +x /usr/local/bin/notflix
2936
```
3037
- To update, just do `curl` again, no need to `chmod` anymore.
3138
- To uninstall, simply remove `notflix` from your **$PATH**, for example `sudo rm -f /usr/local/bin/notflix.

notflix

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

33
query=$(printf '%s' "$*" | tr ' ' '+' )
4-
movie=$(curl -s https://1337x.to/search/$query/1/ | grep -Eo "torrent\/[0-9]{7}\/[a-zA-Z0-9?%-]*/" | head -n 1)
4+
movie=$(curl -s https://1337x.to/search/$query/1/ | grep -Eo "torrent\/[0-9]*\/[a-zA-Z0-9?%-]*/" | head -n 1)
55
magnet=$(curl -s https://1337x.to/$movie | grep -Po "magnet:\?xt=urn:btih:[a-zA-Z0-9]*" | head -n 1)
6-
peerflix -l -k $magnet
6+
peerflix -l -k $magnet --vlc

0 commit comments

Comments
 (0)