.
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | NOTFLIX
2 | f@#k netflix use notflix a tool which search magnet links and stream it with peerflix
3 |
4 | ##
5 |
6 |
7 |
8 |
9 | > Watch this video to understand - [bugswriter's notflix](https://youtu.be/FbE19_omaWY)
10 |
11 | ### How does this work?
12 |
13 | This is a shell script. It scape 1337x and get the magnet link.
14 | After this it use [peerflix](https://github.com/mafintosh/peerflix) to stream the video from magnet link.
15 | For scraping script use simple gnu utils like sed, awk, paste, cut.
16 |
17 | ## Requirements
18 |
19 | * [peerflix](https://github.com/mafintosh/peerflix) - A tool to stream torrent. `sudo npm install peerflix -g`
20 |
21 | ## Installation
22 |
23 | ### cURL
24 | cURL **notflix** to your **$PATH** and give execute permissions.
25 |
26 | ```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
29 | ```
30 | - To update, just do `curl` again, no need to `chmod` anymore.
31 | - To uninstall, simply remove `notflix` from your **$PATH**, for example `sudo rm -f /usr/local/bin/notflix.
32 |
33 | ## License
34 | This project is licensed under [GPL-3.0](https://raw.githubusercontent.com/Illumina/licenses/master/gpl-3.0.txt).
35 |
36 |
--------------------------------------------------------------------------------
/notflix:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | 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)
5 | 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
7 |
--------------------------------------------------------------------------------
/preview.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bugswriter/notflix/018943da49dfb8467189709505564404319f0712/preview.gif
--------------------------------------------------------------------------------