Stream magnet links using peerflix

Signed-off-by: Joseph Nuthalapati's avatarJoseph Nuthalapati <[email protected]>
parent 7d08d1af
Pipeline #105108264 passed with stage
in 56 seconds
......@@ -13,6 +13,8 @@ only the standard library.
- [x] Search for videos using keywords
- [x] Stream videos
- [x] Stream music
- [x] Play direct links from YouTube and PeerTube
- [x] Stream video from magnet links
- [ ] Download video
- [ ] Download music
- [ ] Configuration options
......@@ -23,6 +25,7 @@ only the standard library.
CLI Tube depends on the following:
- youtube-dl
- mpv (recommended) or vlc
- peerflix (for magnet links)
Download the latest build from GitlabCI (amd64 GNU/Linux only).
......
......@@ -61,6 +61,11 @@ if "?watch" in searchQuery or "videos/watch" in searchQuery :
quit(0)
if searchQuery.startswith("magnet:"):
discard execProcess(&"peerflix \"{searchQuery}\" --{player}")
quit(0)
let searchResults = extractTitlesAndUrls(getYoutubePage(searchQuery))
let number =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment