3 ms·
It seems a lot of the magic behind this comes from Peerflix - a node.js library for streaming torrents. This is mostly a CLI wrapper for searching piratebay, p
by dkopi 11y ago
It seems a lot of the magic behind this comes from Peerflix - a node.js library for streaming torrents.
This is mostly a CLI wrapper for searching piratebay, parsing the results, and then streaming using peerflix.
https://github.com/mafintosh/peerflix https://github.com/mafintosh/peerflix
I'm curious why thepiratebay npm package wasn't used instead:
https://github.com/t3chnoboy/thepiratebay https://github.com/t3chnoboy/thepiratebay
That said, great usage of cheerio for parsing the returned HTML results. I love how it's as simple as running JQuery like commands on the server side.
- oniony 11y agoA lot of credit for most FOSS software is the various libraries and programming languages they are built upon: I don't think you can take anything away from this project because of it. Indeed if you take the time to look into Peerflix's dependencies (https://github.com/mafintosh/peerflix/blob/master/package.json https://github.com/mafintosh/peerflix/blob/master/package.js...) you'll see that it, too, is based upon airplay-js, parse-torrent, torrent-stream, amongst others. We're at a rather convenient point in time where building a program/app is an exercise in coming up with an idea, researching the alternative components it can be built out of and then spending the time getting them to play nicely together. I wouldn't underestimate the amount of work that entails.
- dkopi 11y agoGreat point. This is definitely nice work, and it looks like a great usage of existing tools. Did not intend to come off disregarding the effort.
- icelancer 11y ago>I'm curious why thepiratebay npm package wasn't used instead They didn't want their work broken due to a random unpublish?
- dkopi 11y agoGiven that the dependencies are: "babel-core": "^6.7.4", "babel-polyfill": "^6.7.4", "chalk": "^1.1.3", "cheerio": "^0.20.0", "es6-promise": "^3.1.2", "inquirer": "^0.12.0", "isomorphic-fetch": "^2.2.1", "jsonfile": "^2.2.3", "lodash": "^4.7.0", "meow": "^3.7.0", "ora": "^0.2.1", "peerflix": "^0.32.4" That's probably not the reason.
- leshow 11y agoit already exists in the form of torrentflix, a project i've contributed to. you can also stream from more than just TPB