Nim Coon depends on the following:
- youtube-dl
- mpv (recommended) or vlc
-- peerflix (for magnet links)
+- peerflix and webtorrent (for magnet links)
-Install VLC or MPV using your distribution's package manager.
+Install MPV or VLC using your distribution's package manager.
Install YouTube-dl
``` sh
pip3 install --user youtube-dl
```
-Install PeerFlix
+Install PeerFlix and WebTorrent
```sh
-npm install --global peerflix
+npm install --global peerflix webtorrent
```
### Installing using Nimble
proc directPlay*(url: string, player: string, options: Table[string, bool]) =
if url.startswith("magnet:"):
if options["musicOnly"]:
+ # TODO Replace with WebTorrent once it supports media player options
discard execShellCmd(&"peerflix '{url}' -a --{player} -- --no-video")
else:
- discard execProcess("peerflix", args=[url, &"--{player}"], options=processOptions)
+ # WebTorrent is so much faster!
+ discard execProcess("webtorrent", args=[url, &"--{player}"], options=processOptions)
else:
play(player, options, url)