Re:Stream PirateBay movies directly from CLI
by oniony on Monday April 04, 2016 @06:00AM
(#11420577)
A 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.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.
Great 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.
Re:Stream PirateBay movies directly from CLI
by icelancer on Monday April 04, 2016 @01:42PM
(#11423772)
>I'm curious why thepiratebay npm package wasn't used instead
They didn't want their work broken due to a random unpublish?
Given 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.
This is mostly a CLI wrapper for searching piratebay, parsing the results, and then streaming using peerflix. https://github.com/mafintosh/peerflix
I'm curious why thepiratebay npm package wasn't used instead: 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.