33 ms·
Stream PirateBay movies directly from CLI
- deleted 11y ago[deleted]
- 07d046 11y agoA CLI version of Popcorn Time, published using the real life identity of the author? Brave move.
- Buge 11y agoAnd using a Hollywood movie as an example? If he wanted to claim "it's just a tool, usable for anything" he should have used something like Big Buck Bunny as the example.
- amelius 11y agoThis was just an example to be used by the rightholders of that movie. If you published your own movie, you can substitute the name of your movie in the example. :)
- andkenneth 11y agoHe should probably change the preview image from selecting from which high res stream of inception he wants then.
- empressplay 11y agoThey're in the Netherlands so I suppose they're safe(ish?)
- tinco 11y agoI wouldn't count on it. The Netherlands is basically a state of the U.S. As far as I know many of the Popcorn Time authors were Dutch as well and they were threatened into taking it down too.
- herbst 11y agoWhat a complete bullshit.
- tinco 11y agoSo you're saying Wessley is safe? Is that your opinion as a Dutch law expert? Maybe before making such dismissive comments you should consider that maybe Wessley is reading this and forming an opinion on whether this silly little github project will have any significant impact on his life. Despite what many people associate The Netherlands with, we're not a liberal state. We're a democratic bureaucracy that leans heavily towards pleasing our trade partners and making sure the country is pleasant to live in for our citizens. That means we will extradite hackers, spy on our inner cities with cameras and force our ISP's to keep communication records of everyone. Every once in a while citizens get pissed off and some policy is reversed or diminished, but usually they don't care enough. I'm not saying Wessley will be fined or worse, but just that should this small app draw the ire from whatever big publisher corporation, he definitely is not 'safe' just from being in The Netherlands.
- herbst 11y ago> The Netherlands is basically a state of the U.S. ^ this is all i ment. I agree that he is not _safe_. But he also does not perse do anything forbidden. I am pretty sure he is aware of the gray zone he is working in.
- userbinator 11y agoHe has a picture, but it's not particularly distinctive, and the name could just be a pseudonym.
- odinduty 11y agoI'd call this distinctive https://avatars3.githubusercontent.com/u/2286385 https://avatars3.githubusercontent.com/u/2286385
- guilhermepontes 11y agoYou're such an asshole.
- deleted 11y ago[deleted]
- herbst 11y agoI dont see how this could be problematic. There is nothing illegal done here.
- imdsm 11y agoReading these comments sounds like people think we're in China. Next we're going to be arresting people who make knives, because you know, people can use them for illegal activities.
- herbst 11y agoExactly. And think about those bastards that provide us with water. People are drowning every day!! When will this finally stop?
- ssharp 11y agoLet's be honest: what percentage of people use this type of video streaming to watch content they have rights to watch and what percentage are using it watch content they don't have rights to watch? My best guess is that a larger portion of people used Popcorn Time to watch copyrighted materials than people used their knives to injure or kill someone. I agree that the tools isn't illegal but I think it's fair to be honest about it's most likely purpose.
- colinramsay 11y agoThis doesn't work for me, because http://thepiratebay.se http://thepiratebay.se is hardcoded in the code and that mirror is blocked in my location. I filed an issue. https://github.com/weslleyaraujo/pirateflix/issues/3 https://github.com/weslleyaraujo/pirateflix/issues/3
- tixzdk 11y agoOr maybe they could use [Node.js core DNS](https://nodejs.org/api/dns.html#dns_dns_setservers_servers https://nodejs.org/api/dns.html#dns_dns_setservers_servers) module to resolve the domain, setting something like [censurfridns](http://www.censurfridns.dk/ http://www.censurfridns.dk/) as a temporary server. I think this module is very immoral, however, so I'm not going to contribute...
- dkopi 11y agoMore concerned about the lack of https. Pirate bay might be legal in your country, but that doesn't mean you want snoopers logging your porn searches.
- ekianjo 11y ago> This doesn't work for me, because http://thepiratebay.se http://thepiratebay.se is hardcoded in the code and that mirror is blocked in my location. I filed an issue. Can't you fix that with an entry in your /etc/hosts file ?
- 11y ago
- dkopi 11y agoIt 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.
- deleted 11y ago[deleted]
- MoSal 11y agoI'm deeply concerned about popularizing torrent streaming. A few leechers breaking "rarest-first" might not cause much harm. But if most leechers become streamers, torrents will lose their efficiency in distributing less-popular content. Transmission implemented a "streaming" feature once, that didn't actually stream. It just stopped fetching pieces "with the same rarity" randomly. They still got too much heat for adding that not very usefull feature. And they reverted the commits soon after.
- catwell 11y agoThis could be true, however I think that if all this torrent streaming sticks to same behavior such as that of XBMC torrent [1] (i.e. streaming for the whole duration of the movie) the swarm will end up stronger, not weaker. [1] https://github.com/steeve/xbmctorrent/blob/e6bcb1037668959e1e3cb5ba8cf3e379c6638da9/README.md#doesnt-sequential-download-on-bittorrent-is-bad https://github.com/steeve/xbmctorrent/blob/e6bcb1037668959e1...
- MoSal 11y agoSuppose there is only one seeder and 2-3 leechers. All leechers managed to get 50+%. Now, if the seeder disappears, the leechers should be able to finish the download from each other. If all initial leechers are streamers, that download will never finish for them or anyone else. Supposedly long seed intervals will not help the swarm in that case.
- RyanZAG 11y agoStreaming isn't going to work there anyway. In reality, there are 100+ seeders and if you had a constant supply of streamers who spend half their time seeding (assuming they download the whole movie by the 50% mark), then you have a very very healthy swarm.
- deepnet 11y agoUnfortunately in many juristictions seeding is copyright infringement and leeching is not. Seeding by default sadly gets a lot of newbs into trouble - especially as publicising IP addresses are part of the protocol. Porn blackmail companies and MPAA agents know that seeders are low hanging fruit. Similarly Limewire and ilk using the downloads folder as a default share folder is useful for the health of the network but this has led many to be unwitting uploaders - which is what they got done for. Jammie Thomas is a case in point, newb music fan (or her kids I recall) but the sharing by default is what she was convicted of - for $30,000,000. No one has ever been convicted of downloading alone - they don't bother trying. So seeding by default can be very cruel - sadly. Even with that caveat, those like Jammie, brought up on Sesame Street were taught to share and don't know how severe tne penalties can be. That sharing is or can be wrong is now taught at a nursery level.
- cbeach 11y agoDislike this kind of story appearing in HN. We're all well educated people with high earning potential who should be capable of buying movies, not using our talent to rip them off. I'd hate to see HN develop a bad reputation because of stuff like this.
- staticelf 11y agoI live in Sweden if you're supposed to wait you'll have to wait several months sometimes extra to purchase content made in the US. Also, historically there is no good way to purchase the content if you do not want to purchase a physical disc in a shop. Sometimes it's never available, especially english shows that is only broadcasted on english tv channels.
- belorn 11y agoIf we are talking about the situation in Sweden, it must also be said that there is a copyright tax on storage media in computers, phones and similar devices. The tax is supposed to be there so authors get paid when people do private copying, but DRM creates a situation where the tax money get stolen and nothing is returned to the tax payer. When copyright is used as an excuse to steal tax money, its hard to use morality as an argument against non-commercial copyright infringement.
- staticelf 11y agoYes, that is truly disgusting. This is the organisation he/she is talking about: http://www.copyswede.se/in-english/ http://www.copyswede.se/in-english/
- icebraining 11y agoStandard arguments against your position: - Using without paying is immoral, you should just do without. - Even if it's OK for you to do so, we know that many people will illegally download films they could buy, hence offering these tools is unethical. - As programmers, we rely on copyright for our income, hence it's unethical to infringe on the copyright of others. Did I miss any? The feelings of deja vu in these threads are way too strong.
- hobarrera 11y agoSounds a great deal like peerflix: https://github.com/mafintosh/peerflix https://github.com/mafintosh/peerflix
- sneak 11y agoWhen are we as a community going to stop cheekily "tolerating" piracy and finally stand up against the unjust and immoral lie that is the concept of intellectual property rights? When you can tell me who owns the number two, I can tell you who owns a song. It's not just "I want movies without paying" posturing. Culture is reuse and remixing. Half of internet culture these days comes from V, from Tyler Durden, from The Matrix, from the Terminator. Should response GIFs and image macros be illegal? Literally ALL use of every kind is fair use. Creators should get paid, yes, but that does not warrant the current farce in any way whatsoever. The "legal solutions" foisted upon us under the current model (eg Spotify) see creators getting paid approximately the same amounts as they did under the Napster setup. I hate to admit it, but rms was right about the whole mess, and it was much, much bigger than computer code.
- andy_ppp 11y agoHmmm. This only includes 344 different dependencies from npm. Not sure why I'm concerned. Is this more dangerous than my webpack build? Probably not but it certainly reminded me that convenience comes at a cost...
- Dawny33 11y agoLooks like the repo has been removed. Can anyone else confirm?
- didntlogin 11y agoYep, gone for me too.
- jnmandal 11y agoIt's gone
- kbart 11y agoYes. Any mirrors?
- akash0x53 11y agohttps://github.com/akash0x53/pirateflix https://github.com/akash0x53/pirateflix
- akash0x53 11y agoYeah, looks like he wasn't ready accept PR and issues.
- Dawny33 11y agoWell, I thought he deleted the repo, cause he didn't like my issue :P
- mcantelon 11y agoLooks like it has been deleted from npm too. Weird.
- nxzero 11y agoIt's gone, link returns 404 with GitHub's "This is not the web page you are looking for." Search GitHub for clones using "pirateflix" to find the code: https://github.com/search?q=pirateflix https://github.com/search?q=pirateflix
- deleted 11y ago[deleted]
- rpalmaotero 11y agoSeems like the repo was deleted.
- adnanh 11y agoIt has been taken down :(
- ReadToLearn 11y agoIt's difficult to do this on the web: https://github.com/orinocoz/pirateflix https://github.com/orinocoz/pirateflix
- Karlozkiller 11y agoSoon after this got on HN, the source seems to have been taken down? I 404 both on Github and npm.
- dkopi 11y agoThis fork is still available: https://github.com/orinocoz/pirateflix https://github.com/orinocoz/pirateflix
- nacs 11y agoSlightly newer fork here (not mine): https://github.com/akash0x53/pirateflix https://github.com/akash0x53/pirateflix
- guilhermepontes 11y agoThe author deleted the repo.
- stegosaurus 11y agoThis looks like a way to break BitTorrent, as other posters have outlined. Streaming in general (apart from via a local server) frustrates me. The entire idea is simply a way of relinquishing control to an external body. Hard drives are not that expensive, and patience is a virtue. I'm very happy that youtube-dl exists, for example, because otherwise when Google disappears I'll lose a lot of useful material I have access to at the moment. Regardless - I'm surprised to see this here. Sci-Hub is one thing - it's an educational resource. Mainstream media... I just gave it up rather than pirating it. I'm not 18 any more - my friends don't really care about the latest Marvel flick. The movie companies have lost even my mindshare now. Books, online reading material, educational videos, all free, all a better use of my time, all less likely to leave me wanting a fast car like James Bond.
- ethanbond 11y agoAs self-righteous as it often sounds, this type of fight against consumerism really is admirable. That said, I think in way these types of tools actually help people to move in the direction that you're going (or have gone). Setting up x y and z streaming servers and downloading 38 movies at a time (because patience is a virtue) so you have a large on-demand catalogue isn't really less consumerist than having tools that are versatile enough to let you sit down and get something on the screen within 30 seconds. Of course, you can abuse something like this or Popcorn Time to become more of a consumer than ever, but I don't think it's inherent to the tool. On the topic of the latest Marvel flick, you really should see Deadpool. It's absolutely hysterical!
- stegosaurus 11y agoI wasn't really advocating a huge library either. I think the idea I have is that there's not really a benefit to trying to 'optimize' watching movies. I guess I see it in the same way as healthy eating, or something. I really bloody like cookies. They're super tasty. If I end up with pack of freshly baked cookies they're gone in a few hours. So why give myself that temptation? What I actually want is the ability to do it. I think it's good for my mental health to have a treat every now and then, but not have it take over my life. So basically, it should be difficult, but not too difficult. In a similar vein, downloading a YouTube video before watching it gives me that window of self control before there's more exciting stuff battering me in the face to continue. I've been using computers and Internet since childhood - I'm not a luddite by any means. But I think it's far too easy nowadays to get caught in bad behaviour patterns because of the instantaneous nature. It takes active effort to digest deep topics. I don't think I'm a pious enough person to be self righteous! Maybe I'd feel different if I were more financially secure and had more time for pure leisure? I don't know. :)
- deepnet 11y agoHundreds of thousands of ordinary people worldwide have had their lives destroyed by this. For enjoying art. The War on the fans is immoral, hateful and wasteful. Those who enact it have stolen more from artists than anyone.
- caractacus 11y agoHundreds of thousands destroyed? I think you will have to back that up with some evidence.
- deepnet 11y agoThe evidence is trivially googleable in every country and language. Most commonly it is lost internet access or fines of only a few thousands. A few thousand is beyond a lot of people, especially in this endless recession. It can be confiscation of equipment and has led to loss of employment. People have been jailed for it, faced years of uncertainty over extradition. Parents, children, teachers, grandmothers, pretty much everyone knows someone who has had at least some trouble. That is not to mention the technological stagnation, the denial of the blind the right to convert documents to speech, works unavailable in whole countries, the trumping of fair-use by DRM, the hours lost trying to convert media, the denial of access to publicly funded science. The invasive anti-privacy laws, the time wasted fighting SOPA, PIPA, the clipper chip, &c. Those who stood in court up faced legal destruction akin to Jammie Thomas, in every country. The chilling effect on innovation & technological takeup. Napster was the killer app that kickstarted broadband adoption in the UK, nevermore. Kids who love music would get into coding - but music startups, even highly legitimate ones are a total no go - the monopolies are too entrenched and stupid. New cultural forms, remix and mashup are outlawed - NWA's original wall of sound was a cultural dead end as licensing the thousands of samples is impossible. A entire new form of black American music outlawed. The loss of orphaned works and rare episodes. The prosecution, hounding & subsequent death of Aaron Schwartz. The harm cause by these monopolies is vast and unnecessary. It could be solved overnight by a blanket license and collection agencies - just like it was for radio.
- 11y ago
- l1feh4ck 11y ago404!
- nazilla12 11y agothe page has just been taken down?
- jpgvm 11y agoI know there are a lot of people saying the breaking the rarest first rule will be really bad for swarm health but it seems to me that with the rise of faster connections it seems reasonable that you can stream a torrent, keeping a reasonable buffer of a few blocks and then with any spare bandwidth download the torrent with a standard rarest first strategy and seed whilst doing so. That said I think purely streaming is bad for torrenting and even though it will happen we should encourage something that is better for maintaining health of swarm.
- KMag 11y agoSee my other comment here about how I implemented randomized swarming in LimeWire in a way to still promote the health of the swarm, and suggestions for a smarter way than I implemented in LimeWire. Even for someone who's interested only in leeching a single streamed movie, if the number of sources for some blocks is only one, it's still in their rational best interest to request those single-source blocks first. Also, if there are multiple blocks with only one source, and they assume there may be another user using the same algorithm, it's in their rational self-interest to download earlier blocks, but not always the next one, under the assumption that another leecher may be grabbing the same block at the same time. So, you end up with the probability of selecting rarest-first vs. earliest-first as a smooth function of the number of sources for the rarest block, and when picking amongst rarest blocks, using something close to an exponential distribution. The best solution for the health of the network would be selecting uniformly from the rarest chunks, but that discourages people from participating in the swarm. Rational self-interest can lead to a solution that's still better for the collective than a pure earliest-first chunk request strategy. (And yes, in LimeWire, I did implement chunk selection as a Strategy design pattern.)
- smoyer 11y agoGithub now returns 404 (Not Found) for the linked project.
- vikeri 11y agoForked: https://github.com/orinocoz/pirateflix https://github.com/orinocoz/pirateflix
- TheArcane 11y agoHow do I install it without the project being registered in npm?
- deleted 11y ago[deleted]
- jdc0589 11y agoNot totally sure what you mean, but you want to install it yourself just clone the repo, `npm install` to get all the dependencies. then, do one of: 1. run `npm link`, which will put pirateflix in your path 2. make src/cli.js executable and run it directly 3. don't make src/cli.js executable, and run it with `node src/cli.js`
- LiquidFlux 11y agoFor context, the fork linked above references being able to install it using 'npm install pirateflix -g', which does not function due to pirateflix apparently not being registered.
- pc86 11y agoSeriously?
- deleted 11y ago[deleted]
- ikeboy 11y agoIt's down?
- m52go 11y agoLooks like the repository is gone now.
- a_small_island 11y agoHoping someone will help. I'm not an engineer, but I'd like to learn a few things. How would I set this up? Not really that interested in streaming torrents but it looks fairly simple so I figure with a nudge I could figure it out on my own.
- deleted 11y ago[deleted]
- marklawrutgers 11y agoI'm not sure about the original link since it 404'd before I could look at it but if it's like the other fork up on here it seems it uses the node package manager. So a simple method would be to install nodejs: https://nodejs.org/en/ https://nodejs.org/en/ This installs npm (node package manager) for you. Open up any Command prompt or Terminal depends on the OS you're running and I'm sure there are lots of alternatives these are usually just the default installed on every machine. Run the install command which looks something like "npm install pirateflix -g" The -g means it installs globally on the machine so you can access it in any directory instead of just one specific folder or location. Once that's done you can just start off each command with "pirateflix" or "pirateflix --help" to get details of the function. It's documented on the github under Usage and Options. Should be straight forward from here. Hardest part is probably just knowing what npm is.
- xufi 11y agoI would like to use this at some point. No need to download movies now . Though I still need music
- brian-armstrong 11y agoFor a news site frequented by software engineers, many of whom receive six figure salaries related to the creation and sale of software, this feels in very bad taste. Movie staff and music artists deserve to have their copyright respected. If you don't like it, just don't watch/listen. It's plainly simple.
- justizin 11y agoSometimes, we've paid for a movie or TV show and the delivery mechanism is shit. I have absolutely watched content off TPB that I have paid for multiple copies of.
- brian-armstrong 11y agoThat's a rationalization. You're also supporting others violating copyright when you do this. It's wrong and I think you know that.
- lmm 11y agoNonsense. If that were true, why am I not also torrenting ebooks, music and video games? Those are all things that I used to torrent, but stopped torrenting when the official delivery mechanisms got good enough for my use cases.
- digler999 11y agoif "Movie staff and music artists" feel like they aren't being paid enough, they should lobby the industry and demand more money. Recording artists earn less than 10% of album sales. The industry pays $20 million to have Johnny Moviestar in their movie. But somehow there's not enough for "movie staff" ? That's not a problem attributable to piracy.
- brian-armstrong 11y agoBut this still doesn't justify violating copyright. Think about how you feel when someone violates GPL. How is this any different?
- jolux 11y agothis repository seems to have been removed...not sure whether by GitHub or the initial author but something happened.
- leshow 11y agotorrentflix can do this and it also stream from more than just TPB, i've contributed to tflix in the past.
- nxzero 11y agoIt's gone, link returns 404 with GitHub's "This is not the web page you are looking for." Search GitHub for clones using "pirateflix" to find the code: https://github.com/search?q=pirateflix https://github.com/search?q=pirateflix
- dang 11y agoWe were asked to delete this post because it might get someone in trouble. I don't think we should delete an entire ongoing discussion, but we did remove the URL.