
webtorrent-mpv-hook
Ajoute un hook qui permet à mpv de diffuser des torrents en utilisant webtorrent.
Prérequis
- node.js
Installation
npm install --global webtorrent-mpv-hook- Vous devez créer un lien symbolique vers un fichier script dans votre dossier de scripts mpv.
webtorrent-mpv-hook pour les instructions.
Vous n’avez besoin de le faire qu’une seule fois.Pour une installation sous Linux sans sudo, vous pouvez essayer cela.
Mise à jour
npm update --global webtorrent-mpv-hook
Utilisation
mpv
Où torrent-id est l’un des suivants :
- lien magnet
- info-hash
- chemin ou URL vers un fichier
.torrent
p (par défaut).Les torrents multi-fichiers sont ouverts comme une liste de lecture.
Configuration
Les valeurs par défaut sont indiquées ci-dessous.
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 ---