]> njoseph.me Git - nimcoon.git/blame_incremental - README.md
Fix YouTube pattern
[nimcoon.git] / README.md
... / ...
CommitLineData
1# CLI Tube
2
3Play videos from YouTube and PeerTube from the
4command line using your preferred desktop media player.
5
6This application is implemented in [Nim language](https://nim-lang.org) using
7only the standard library.
8
9![clitube screenshot with search term 'baby yoda'](screenshot.png)
10
11## Features
12
13- [x] Search for videos using keywords
14- [x] Stream videos
15- [x] Stream music
16- [x] Play direct links from YouTube and PeerTube
17- [x] Stream video from magnet links
18- [ ] Download video
19- [ ] Download music
20- [ ] Configuration options
21- [ ] Play magnet links
22
23## Installation
24
25CLI Tube depends on the following:
26- youtube-dl
27- mpv (recommended) or vlc
28- peerflix (for magnet links)
29
30Download the latest build from GitlabCI (amd64 GNU/Linux only).
31
32```sh
33wget https://gitlab.com/njoseph/cli-tube/-/jobs/artifacts/master/download?job=compile -O artifacts.zip
34unzip artifacts.zip
35```
36
37
38For other platforms, create a release artifact using the following command:
39
40```sh
41nim c -d:ssl -d:release clitube.nim
42```
43
44Copy the binary to a directory on your PATH such as `/usr/local/bin`
45
46## Usage
47
48```sh
49clitube emacs
50
51# If your search query has multiple words, use quotes
52clitube 'nim lang'
53
54# Advanced: Play audio of the first search result
55clitube -m -l "counting stars"
56```
57
58### Commandline arguments
59
60| **Arguments** | **Explanation** |
61|---------------|--------------------------------------------|
62| -m, --music | Play Music only, no video |
63| -l, --lucky | Try your luck with the first search result |
64
65## Development
66
67One-liner for compiling and running
68
69```sh
70nim c -d:ssl -r clitube.nim 'nim lang'
71```