Pages

Monday, 15 June 2020

live-torrent:一个支持磁力链和种子的在线搜索云播Web客户端

说明:live-torrent是一个功能强大的BT Web客户端工具,支持BT搜索和云播,我们可以直接使用程序内置的引擎搜索查找资源,也可以自行上传种子文件或磁力链接添加任务,程序支持自动识别种子内视频文件,点击播放按钮可以直接在线播放,该程序支持对接OpenSubtitles,自动给视频添加字幕。同时也提供一个热门电影排行榜,并提供对应资源给你播放和下载。不过唯一有点小遗憾的就是,不支持在线搜索中文资源,所以中文资源只能自己上传种子文件进行识别播放下载。

手动安装

1、安装NodeJS
#Debian/Ubuntu系统
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt install -y git nodejs 

#CentOS系统
curl -sL https://rpm.nodesource.com/setup_10.x | bash -
yum install nodejs git -y
2、安装live-torrent
git clone https://github.com/Davenchy/live-torrent
cd live-torrent
#安装依赖
npm i
#打包运行
npm run build
nohup npm start&
装好后通过ip:3000访问Web客户端了。
最后如果你访问不了Web端,可能要检查下防火墙端口,有安全组的也要放行下相关端口。
这里提供个CentOS系统防火墙开启命令,比如开放3000端口,大致如下:
#CentOS 6
iptables -I INPUT -p tcp --dport 3000 -j ACCEPT
service iptables save
service iptables restart--------Torrent Web Client
    

live-torrent

Search, explore and download torrent files online.

Watch online YTS movies with subtitles.

the backend package is live-torrent-backend

Install and Build

# clone the project
git clone https://github.com/Davenchy/live-torrent && cd live-torrent

# then install dependencies
npm install

# build frontend
npm run build

#######################################################################

# create the .env file more information in the .ENV section below
echo "PORT=<your port>\nOSUA=<your opensubtitles user agent>" > .env

# run the server
npm start

################################ OR ###################################

# run the server with env vars
PORT=???? OSUA=?????????? npm start

The .ENV file

Live torrent needs some environment variables you can define them in the terminal or in a .env file

Variable Name Default Value Description
PORT 3000 the server listening port
OSUA TemporaryUserAgent the opensubtitles.org api user agent

for more information about the backend from here.

for more information about the OpenSubtitles.org api user agent from here

from https://github.com/Davenchy/live-torrent

 

No comments:

Post a Comment