# CLI Tube
-Play videos from YouTube (and maybe other sources in the future) from the
+Play videos from YouTube and PeerTube from the
command line using your preferred desktop media player.
This application is implemented in [Nim language](https://nim-lang.org) using
- [x] Search for videos using keywords
- [x] Stream videos
- [x] Stream music
-- [ ] Download videos
+- [x] Play direct links from YouTube and PeerTube
+- [x] Stream video from magnet links
+- [ ] Download video
+- [ ] Download music
- [ ] Configuration options
- - [ ] Choice of video players
- - [ ] Show video URLs or not
- - [ ] Play audio only
-- [ ] Pagination of search results
+- [ ] Play magnet links
## Installation
+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).
```sh
# If your search query has multiple words, use quotes
clitube 'nim lang'
+
+# Advanced: Play audio of the first search result
+clitube -m -l "counting stars"
```
### Commandline arguments
-| **Arguments** | **Explanation** |
-|----------------|---------------------------|
-| -m, --music | Play Music only, no video |
+| **Arguments** | **Explanation** |
+|---------------|--------------------------------------------|
+| -m, --music | Play Music only, no video |
+| -l, --lucky | Try your luck with the first search result |
## Development