Code Monkey home page Code Monkey logo

live-torrent's Introduction

Live Torrent V4

Rebuilding Live Torrent with Next.js ❤️ flavor from scratch.

In progress

Search, explore, download and stream torrent files online.

Watch online YTS movies with subtitles in any language.

Now all in one fullstack package.

Install and Build

# clone the project
git clone --depth=1 --single-branch https://github.com/Davenchy/live-torrent.git

# change working directory
cd live-torrent

# then install dependencies
npm install

# now lets's build our project
npm run build

# finally get ready
npm start

Docker

Build Docker Image

docker build -t live-torrent-next .

Manage Docker Container

  • run/create a new container
docker run --name=live-torrent-next -d -p 3000:3000 live-torrent-next

OR use our pre-built image form docker hub davenchy/live-torrent-next:latest

docker run --name=live-torrent-next -d -p 3000:3000 davenchy/live-torrent-next:latest
  • start the container
docker start live-torrent-next
  • stop the container
docker stop live-torrent-next

Old LiveTorrent

  • To pull the old LiveTorrent docker image
docker pull davenchy/live-torrent
  • To run a container for the old LiveTorrent
docker run --name=live-torrent -d -p 3000:8080 -e "OSUA=<your opensubtitles user agent>" davenchy/live-torrent
  • The OSUA enviroment variable must be set to your opensubtitles user agent. It is not mandatory to set but it is required to fetch subtitles.

  • To get your own OpenSubtitles_User_Agent check this link

live-torrent's People

Contributors

davenchy avatar dependabot[bot] avatar depfu[bot] 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

live-torrent's Issues

how to easy deploy live torrent & backend server to heroku for make my own

Hi Davenchy ,
at the first , special thanks for your special live torrent stream serivice worked fine for me .
please tell me how to easy deploy live torrent & backend server to make my own at the easiest way to deploy it on heroku.
I know backend server have 'deploy to heroku button' but what changes needed for live-torrent to using backend server & what steps to run it ?
waiting for your response
finest regards
goodbye

Download/streaming video in non-blocking way?

I am new to node, no idea how to optimize the whole performance,
I deployed live torrent behind Nginx reverse proxy on Azure VM. it works perfectly for single connection with fast speed. The download speed up to 20 MB/s
But once the second download request was established to get the video from the same torrent, it keep waiting until the first download request done. sometime multiple connections could be concurrently streaming but only up to 4 concurrent connections from my testing.
Isn't node serve requests in Non-blocking way? why incoming requests are being queued?
I am pretty sure the quality of torrent is good.
Azure VM specs

OS: ubuntu 18.04 LTS
Memory: 16GB
vcpus:2
bandwidth: upload 1300 mbps, download 1021 mbps

Cannot play video on demo web app

When I clicked play button, I got 400 bad request

Request URL: http://live-torrent.herokuapp.com/api/torrent/serve/043dea44be00f5360a30306255f56cadddfebaea/
Request Method: GET
Status Code: 400 Bad Request
Remote Address: 34.243.165.180:80
Referrer Policy: no-referrer-when-downgrade
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 18
Content-Type: text/html; charset=utf-8
Date: Thu, 26 Dec 2019 05:49:15 GMT
Etag: W/"12-oN+JvVx3oRJFqBNENVRj+k5XN4w"
Server: Cowboy
Via: 1.1 vegur
X-Powered-By: Express

response body

please select file

Peek 2019-12-26 13-49

HTML file

This isn't really an issue but is there an HTML file with all the code, I'm kind of new to GitHub so I can't really find it.

Thanks

Upload Captions

When I upload captions it doesn't load into the video, so it would be great if you could fix that

TypeError: Cannot read property 'length' of undefined

Failed to load resource: net::ERR_CONNECTION_REFUSED
:3000/api/torrent/serve/6162001817e88f82c26121321a78715774a9b4f4/Park.Yurskogo.Perioda.3.2001.BDRip.1080p.mkv:1

C:\Users\User\Projects\live-torrent\node_modules\webtorrent\lib\file-stream.js:59
debug('read %s (length %s) (err %s)', p, buffer.length, err && err.message)
^

TypeError: Cannot read property 'length' of undefined
at _torrent.store.get (C:\Users\User\Projects\live-torrent\node_modules\webtorrent\lib\file-stream.js:59:55)
at C:\Users\User\Projects\live-torrent\node_modules\fs-chunk-store\index.js:198:23
at end (C:\Users\User\Projects\live-torrent\node_modules\run-parallel\index.js:18:15)
at done (C:\Users\User\Projects\live-torrent\node_modules\run-parallel\index.js:22:10)
at each (C:\Users\User\Projects\live-torrent\node_modules\run-parallel\index.js:28:7)
at C:\Users\User\Projects\live-torrent\node_modules\run-parallel\index.js:43:37
at C:\Users\User\Projects\live-torrent\node_modules\fs-chunk-store\index.js:191:27
at apply (C:\Users\User\Projects\live-torrent\node_modules\thunky\index.js:44:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)

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.