asapach / peerflix-server Goto Github PK
View Code? Open in Web Editor NEWStreaming torrent client for Node.js with web ui.
License: MIT License
Streaming torrent client for Node.js with web ui.
License: MIT License
The app work smoothly, can you add support for subtitles please?
i'm trying to post a magent link via the rest api but all i get is this message:
TypeError: path must be a string
at Object.fs.open (fs.js:427:11)
at Object.fs.readFile (fs.js:206:6)
at readTorrent (/usr/local/lib/node_modules/peerflix-server/node_modules/read-torrent/index.js:54:8)
at EventEmitter._.extend.add (/usr/local/lib/node_modules/peerflix-server/server/store.js:36:5)
at api.post.file (/usr/local/lib/node_modules/peerflix-server/server/index.js:67:9)
at callbacks (/usr/local/lib/node_modules/peerflix-server/node_modules/express/lib/router/index.js:164:37)
at param (/usr/local/lib/node_modules/peerflix-server/node_modules/express/lib/router/index.js:138:11)
at pass (/usr/local/lib/node_modules/peerflix-server/node_modules/express/lib/router/index.js:145:5)
at Router._dispatch (/usr/local/lib/node_modules/peerflix-server/node_modules/express/lib/router/index.js:173:5)
at Object.router (/usr/local/lib/node_modules/peerflix-server/node_modules/express/lib/router/index.js:33:10)
I tried it like this:
curl --data '{"link":"magnet:?xt=urn:btih:EE0B41983C0A71E19B0CF06854CD5C7732D8D3BE&dn=jurassic+world+2015+hdts+v2+x264+ac3+cpg&tr=udp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce"}' http://localhost:9000/torrents
any idea what i'm doing wrong?
I have installed peerflix-server following the readme on my server running Ubuntu Server 14.04. But when I run peerflix-server it does nothing; it displays nothing and netstat doesn't show the 9000 port at all. It does not however tell me peerflix-server: command not found, and /usr/local/bin/peerflix-server exists so it has been installed.
I try to connect through the local network, on the physical server and over Internet with port forwarded but every time I get a connection refused error. I have tried reinstalling peerflix-server and restarting my machine, and nothing changed.
Any help would be much appreciated!
Hi,
After pasting a magnet link or uploading a torrent, not much is happening in the browser.
Output generated by peerflix-server:
info: handshake authorized piUno-zl_Jj65_L54eQs
GET /torrents 200 5ms - 2b
adding 72f242db89e763b6ce390f25d576195c2169b149
POST /upload 200 2247ms - 60b
current state saved
GET /torrents/72f242db89e763b6ce390f25d576195c2169b149 200 2ms - 60b
verifying 72f242db89e763b6ce390f25d576195c2169b149
0 Big.Buck.Bunny.4K.UHD.HFR.60fps.FLAC.WEBDL.2160p.X264_ZMachine.mkv
ready 72f242db89e763b6ce390f25d576195c2169b149
After that it starts throwing the following error over and over again:
TypeError: undefined is not a function
at module.exports (/usr/local/lib/node_modules/peerflix-server/server/progressbar.js:9:10)
at serialize (/usr/local/lib/node_modules/peerflix-server/server/index.js:29:15)
at /usr/local/lib/node_modules/peerflix-server/server/index.js:42:12
at callbacks (/usr/local/lib/node_modules/peerflix-server/node_modules/express/lib/router/index.js:164:37)
at param (/usr/local/lib/node_modules/peerflix-server/node_modules/express/lib/router/index.js:138:11)
at param (/usr/local/lib/node_modules/peerflix-server/node_modules/express/lib/router/index.js:135:11)
at pass (/usr/local/lib/node_modules/peerflix-server/node_modules/express/lib/router/index.js:145:5)
at Router._dispatch (/usr/local/lib/node_modules/peerflix-server/node_modules/express/lib/router/index.js:173:5)
at Object.router (/usr/local/lib/node_modules/peerflix-server/node_modules/express/lib/router/index.js:33:10)
at next (/usr/local/lib/node_modules/peerflix-server/node_modules/express/node_modules/connect/lib/proto.js:193:15)
GET /torrents/72f242db89e763b6ce390f25d576195c2169b149 500 11ms - 1.05kb
Sorry to bother you, both any suggestions on what's happening here?
Node.js version: v0.12.0
Peerflix version: 0.25.2
Platform: Ubuntu 12.04
Thanks!
I think it will be verry great if you can do a multiple selection of torrent files for the upload.
I think something like this jquery plugin :
With Chrome dropping support for NPAPI, the VLC plugin and many others aren't working anymore.
This means that trying to open a file that is currently being downloaded results only in downloading the video file which cannot even be opened with any program until said download is complete, kind of defeating the purpose of torrent streaming.
Would it be possible to embed a html5
Hello,
first thank you so much for this awesome application ♥.
i have some question:
Best regards,
Hi,
Upload seems to end when downloading the files is over.
It's a bug or a features ? It's should be a option !
It will be better for p2p community...
Thanks!
I would like to run this on my server, can you implement password protection?
Simple http password would work
Add to peerflix-server support RESTful API be able to manage removed peerflix-server
The server runs fine, however there is no stream to be found using vlc.
peerflix's default port has nothing, and 9000 does nothing but displays the page.
root@godmode:~# peerflix-server
info - socket.io started
previous state not found
adding ef330b39f4801d25b4245212e75a38634bfc856e
/usr/lib/node_modules/peerflix-server/node_modules/torrent-stream/index.js:68
if (!link || !link.infoHash) throw new Error('You must pass a valid torrent o
^
Error: You must pass a valid torrent or magnet link
at torrentStream (/usr/lib/node_modules/peerflix-server/node_modules/torrent-stream/index.js:68:37)
at module.exports (/usr/lib/node_modules/peerflix-server/server/engine.js:6:16)
at /usr/lib/node_modules/peerflix-server/server/store.js:47:15
at /usr/lib/node_modules/peerflix-server/node_modules/read-torrent/index.js:10:33
at process._tickCallback (node.js:419:13)
every time i try to add a torrent, the server shuts down and gives me this error. i have done the same install on debian 7 wheezy all the time. nothing changed. what is this annoying problem I'm having, did something change in the code i can't use peerflix-server
Hello,
It could be nice if default player could support .srt subtitles files 😄
Cheers
From web ui i can start/stop torrent, how can i do this fro api?
e.g. magnet:?xt=urn:btih:
I get this weird error while starting peerflix-server .
saru95:~ sarthakmunshi$ peerflix-server
info - socket.io started
previous state not found
GET / 200 42ms - 613b
GET /scripts/3d1ccfc4.scripts.js 200 28ms - 2.15kb
GET /styles/6e9014b8.main.css 200 31ms - 2.09kb
GET /styles/15d7b359.vendor.css 200 33ms - 135.19kb
GET /scripts/945feeed.vendor.js 200 529ms - 281.71kb
GET /views/main.html 200 2ms - 3.45kb
info - handshake authorized 8HT9SDaBVVDKoRWrgaWI
GET /torrents 200 3ms - 2b
GET /images/169ad458.logo.svg 200 16ms - 973b
GET /favicon.ico?new 200 3ms - 318b
GET /bower_components/font-awesome/fonts/fontawesome-webfont.woff?v=4.2.0 200 6ms - 63.92kb
GET /torrents 304 1ms
adding 582e0b49e65ffad71b1285b8f21da8df57866435
POST /torrents 200 6ms - 60b
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at Server.listen (net.js:1138:5)
at join (/usr/local/lib/node_modules/peerflix-server/node_modules/torrent-stream/node_modules/peer-wire-swarm/index.js:87:10)
at Swarm.listen (/usr/local/lib/node_modules/peerflix-server/node_modules/torrent-stream/node_modules/peer-wire-swarm/index.js:211:2)
at EventEmitter.engine.listen (/usr/local/lib/node_modules/peerflix-server/node_modules/torrent-stream/index.js:718:9)
at module.exports (/usr/local/lib/node_modules/peerflix-server/server/engine.js:50:10)
at /usr/local/lib/node_modules/peerflix-server/server/store.js:48:17
at /usr/local/lib/node_modules/peerflix-server/node_modules/read-torrent/index.js:18:13
saru95:~ sarthakmunshi$ peerflix-server
info - socket.io started
previous state not found
GET / 304 31ms
GET /styles/15d7b359.vendor.css 304 4ms
GET /styles/6e9014b8.main.css 304 3ms
GET /scripts/945feeed.vendor.js 304 4ms
GET /scripts/3d1ccfc4.scripts.js 304 3ms
GET /views/main.html 304 2ms
info - handshake authorized bX71hxJ5LP3Od38pgtDD
GET /torrents 200 2ms - 2b
GET /bower_components/font-awesome/fonts/fontawesome-webfont.woff?v=4.2.0 304 4ms
GET /favicon.ico?new 200 6ms - 318b
GET /torrents 304 1ms
adding 582e0b49e65ffad71b1285b8f21da8df57866435
POST /torrents 200 7ms - 60b
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at Server.listen (net.js:1138:5)
at join (/usr/local/lib/node_modules/peerflix-server/node_modules/torrent-stream/node_modules/peer-wire-swarm/index.js:87:10)
at Swarm.listen (/usr/local/lib/node_modules/peerflix-server/node_modules/torrent-stream/node_modules/peer-wire-swarm/index.js:211:2)
at EventEmitter.engine.listen (/usr/local/lib/node_modules/peerflix-server/node_modules/torrent-stream/index.js:718:9)
at module.exports (/usr/local/lib/node_modules/peerflix-server/server/engine.js:50:10)
at /usr/local/lib/node_modules/peerflix-server/server/store.js:48:17
at /usr/local/lib/node_modules/peerflix-server/node_modules/read-torrent/index.js:18:13
Hi !
When I try to stream a torrent wich is mad by a floder and the video is in a subfolder I gt a 404 error:
Not Found
The requested URL /torrents/24ee2e7b82eaba379377557aad92830ccd328173/files/torrent.name/torrent.name.avi was not found on this server.
At the same time the status bar is in progress but there's not any data abouts speed or peers, all is at 0.
The datas are under
/tmp/torrent-stream/24ee2e7b82eaba379377557aad92830ccd328173/torrent.name/
When I fetch a torrent where the file is not in a subfolder, the streaming works.
What can I do ?
Hi,
I was using peerflix-server through the web-interface and I noticed it never uploads anything. In fact, I leave it running for a few hours and it didn't upload (or says it didn't upload) anything.
Is this expected ? Should I do something to enable uploading the downloaded files ?
Thanks a lot,
Rodrigo
How can i start peerflix server only on one physical interface?
Is it planned to add some kind of authentication, so that if I use this as a seedbox or for my project (https://github.com/milankragujevic/WebMovBucket) I can have control over who's using it?
Hello, great app but upload not work on local or true server.
Need help for this .
thx.
Looks nice... but how do I start this server?
how to install it in my F drive??
I did in cmd first
and the temp folder to bo in F drive where the downloaded movies store
Hi, i have no sound when movie launch..
im on mac 10.10
thanks.
Just an information about to play your link video on right click with your favorite external system player.
It's possible with Open with.
https://addons.mozilla.org/fr/firefox/addon/open-with/
https://addons.mozilla.org/en-US/firefox/addon/open-with/
After configurations of your players path,you will see on right click on generated link file, the list of your players and you can send them, it's perfect and easy
++
Hi !
I was trying to launch peerflix server as a daemon with forever and I got always the same error while launching from an init.d script :
path.js:360
throw new TypeError('Arguments to path.join must be strings');
^
TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at Object.exports.join (path.js:358:36)
at Object. (/usr/lib/node_modules/peerflix-server/server/store.js:11:21)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
error: Forever detected script exited with code: 8
error: Script restart attempt #4
To resolv this issue I did edit the store.js file and did this :
Now it works.
Hello.
Not all files are shown on TV because of codecs especially MKV files if the codec is not MP4
Perhaps add transcoding on the fly using FFMPEG?
And to add to informtsiyu video file codecs video and audio, resolution, etc. in response json
Hi, can you add the drag and drop or just select .torrent from the local, because on t411.me they are not magnet link.
Thanks.
Many people (including myself) are using peerflix-server on their VPS, but right now downloading and watching big torrents are problematic. Not that they don't work, but space is a problem.
I have 30GB space on my VPS, I simply can't download a 20GB torrent. I can select one file to download from the GUI, but I have no option to delete that file after watching. I have to ssh into my VPS.
So, would it be possible to add basic file management? Even only deleting files from the torrent would be more than enough to solve this problem.
I have installed peerflix-server. I tested on 3 computers (mac, windows, linux) accessing this website at http://192.168.19.140:9000.
All 3 computers can view this video streaming. But how come the torrent video is stored at the server only? Shouldn't it be stored into the 3 computers as well?
Reason I ask this, will this cause the server major bandwidth? Any help on this?
Hi,
Could you add a button that it upload downloaded files to a hoster like mega or uptobox etc.. ?
That could be nice ! I hope so, now, do whatever you want :D
Thanks !
I am unable to stream flv and mkv extension types in my browser.
I had the idea of portforwording port 9000, so i can watch movies on the go. but this wouldn't be really practical because other poeple could than use it and potentially slow down the connection of my server.
It would be really neat to have.
Thanks in advance
Could this be possible?
is there a way to fetch only video files ?
thank you
Hello When I type peerflix-server i get this, knowing that It's been working fine , It's running Ubuntu 14.04
root@ns310445:~# peerflix-server
info - socket.io started
undefined:0
SyntaxError: Unexpected end of input
at Object.parse (native)
at /usr/local/lib/node_modules/peerflix-server/server/store.js:101:29
at fs.js:336:14
at FSReqWrap.oncomplete (fs.js:99:15)
The green thingies in the progress bar seem to fly from left to right a lot when i try to load the peerflix example torrent, magnet:?xt=urn:btih:ef330b39f4801d25b4245212e75a38634bfc856e
If it isn't clear what I mean I can try to upload a gif :)
Checkout the following feature:
https://devcenter.heroku.com/articles/heroku-button
I am using peerflix-server on my VPS, I set it up like this:
server {
listen 80;
server_name peerflix.domain.com;
keepalive_timeout 15m;
location / {
proxy_pass http://localhost:9000/;
proxy_http_version 1.1;
auth_basic "peerflix server";
auth_basic_user_file /etc/nginx/.htpasswd;
}
location /socket.io/ {
proxy_pass http://localhost:9000/socket.io/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /torrents/ {
proxy_pass http://localhost:9000/torrents/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
TCP 9000 port is blocked on the firewall.
I can drag and drop files, watch in local with mpv (couldn't watch without /torrents/), web page is password protected; but adding magnet links and clicking Download or using uploading function doesn't work.
And they work if I add 9000/tcp to my firewall and connect directly using domain.com:9000, but then authentication doesn't work.
Hi,
The Play/Pause button on torrent download doesn't seems to work.
Any ideas ?
Torrent or Magnet THEM ALL Can't WORK
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.