
webtorrent-mpv-hook
添加一个钩子,允许 mpv 使用 webtorrent 流式传输种子。
前提条件
- node.js
安装
npm install --global webtorrent-mpv-hook- 你需要将一个脚本文件符号链接到你的 mpv 脚本文件夹。
webtorrent-mpv-hook 获取说明。
你只需执行一次。对于无需 sudo 的 Linux 安装可以尝试这里。
更新
npm update --global webtorrent-mpv-hook
用法
mpv
其中 torrent-id 可以是:
- 磁力链接
- 信息哈希
- 指向
.torrent文件的路径或 URL
p(默认)手动切换。多文件种子将作为播放列表打开。
配置
默认值如下所示。
input.conf
# Toggles info/progress overlay.
p script-binding webtorrent/toggle-infoscript-opts/webtorrent.conf
# Path to save downloaded files in. Can be set to "memory" to store all files in RAM.
path=./
Maximum number of connections.
maxConns=100
Port to use for webtorrent web-server.
If it's already in use a random port will be chosen instead.
port=8888
Enable μTP support.
utp=yes
Enable DHT.
dht=yes
Enable local service discovery.
lsd=yes
Download speed limit in bytes/sec.
downloadLimit=-1
Upload speed limit in bytes/sec.
uploadLimit=-1
Specify the node command to use.
Usefull if the command is called nodejs on your system.
node_path=nodeThe same text style options as in stats.conf is also available.
--- Tranlated By Open Ai Tx | Last indexed: 2026-02-14 ---