- [x] Search for videos using keywords
- [x] Stream videos and music from YouTube
- [x] Play direct links from YouTube and PeerTube
-- [x] Stream video and music from magnet links
+- [x] Stream video and music from magnet links and hyperlinks to torrent files
- [x] Download music
- [x] Download video
- [x] Play playlists (MPV only)
urlLongen(stripZshEscaping(url))
proc directPlay*(url: string, player: string, options: Table[string, bool]) =
- if url.startswith("magnet:"):
+ if url.startswith("magnet:") or url.endswith(".torrent"):
if options["musicOnly"]:
# TODO Replace with WebTorrent once it supports media player options
discard execShellCmd(&"peerflix '{url}' -a --{player} -- --no-video")