Giter VIP home page Giter VIP logo

peerflix-server's People

Contributors

alexlincoln avatar asapach avatar coriou avatar costan1974 avatar ct8 avatar dependabot[bot] avatar discordianfish avatar joshterrill avatar lukechilds avatar pryg-skok avatar rare-magma avatar ryanramage avatar seyfsv avatar sgsunder avatar simplycrazy avatar stfl avatar zqueal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

peerflix-server's Issues

Subtitles

The app work smoothly, can you add support for subtitles please?

Posting a magent link using curl

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?

Doesn't seem to start

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!

500 Internal Server on GET /torrents

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!

<Video> page instead of direct file link?

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

[Help] about starting dev in php :)

Hello,
first thank you so much for this awesome application ♥.
i have some question:

  • there is a documentation or ability to create a PHP code that control all features,
    something like upload file & get result.
  • there is any option to disable store files in disk & use instead stream option (that mean nothing will be stored in server side)
    -i have Ubuntu 14.04: in ~/.config/peerflix-server/torrents.json when i put option that mentioned here https://github.com/mafintosh/torrent-stream#full-api
    i get error : Undefined 2 please check this http://i.imgur.com/raReft7.png
    PS: i had found in this config file : ["c1bb97836be45ef02e24bdf7bd4e666fd37db8aa"]
    i guess it's not the right config.json

Best regards,

Password protection

I would like to run this on my server, can you implement password protection?

Simple http password would work

Add RESTful API

Add to peerflix-server support RESTful API be able to manage removed peerflix-server

  1. Adding a torrent or Magnet link and delete from the list
  2. Preparation of the download status and impact without vebsokket
  3. Information about the contents of a torrent
  4. Information about video codec, resolution, bitrate, etc.
  5. и т.д )

No Video Stream

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.

new errors

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

EADDRINUSE on swarm start up

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

Can't stream torrents who are in subfolders

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 ?

Upload not working ?

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

looks nice

Looks nice... but how do I start this server?

Install it in another drve

how to install it in my F drive??

I did in cmd first

  1. F:
  2. created a folder peerflix, in cmd entered cd peerflix
  3. npm install -g peerflix-server
  4. peerflix

and the temp folder to bo in F drive where the downloaded movies store

No sound

Hi, i have no sound when movie launch..

im on mac 10.10
thanks.

peerflix + "open with" module firefox to play video on right click with your favorite external player.

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
++

Issue while using peerflix-server with forever in an init.d script

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 :

  • homePath = '/root',
  • homePath = process.env[(process.platform === 'win32') ? 'USERPROFILE' : 'HOME'],

Now it works.

Add info video codec and transcoding FFMPEG

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

Select local torrent

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.

Managing files

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.

How does it actually worked?

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?

"Send to a hoster" button

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 !

Optional password

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

Can't start peerflix-server

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)

progressbar is jumping around

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 :)

Can't use magnet links and uploading torrent file while using authentication

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.

Play/Pause

Hi,
The Play/Pause button on torrent download doesn't seems to work.

Any ideas ?

Error

Torrent or Magnet THEM ALL Can't WORK

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.