]> njoseph.me Git - nimcoon.git/blame_incremental - README.md
Bump version and update changelog
[nimcoon.git] / README.md
... / ...
CommitLineData
1# NimCoon
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![nimcoon screenshot with search term 'baby yoda'](screenshot.png)
10
11## Features
12
13- [x] Search for videos using keywords
14- [x] Stream videos and music from YouTube
15- [x] Play direct links from YouTube and PeerTube
16- [x] Stream video and music from magnet links
17- [x] Download music
18- [x] Download video
19- [ ] Configuration options
20
21## Installation
22
23Nim Coon depends on the following:
24- youtube-dl
25- mpv (recommended) or vlc
26- peerflix (for magnet links)
27
28Install VLC or MPV using your distribution's package manager.
29
30Install YouTube-dl
31``` sh
32pip3 install --user youtube-dl
33```
34
35Install PeerFlix
36```sh
37npm install --global peerflix
38```
39
40### Installing using Nimble
41
42NimCoon can be installed from Nimble repositories:
43
44``` sh
45nimble install nimcoon
46```
47
48You can also install from source by running the following command:
49
50```sh
51nimble install
52```
53
54### Installing binary
55
56Download the latest build from GitlabCI (amd64 GNU/Linux only).
57
58```sh
59wget https://gitlab.com/njoseph/nimcoon/-/jobs/artifacts/master/download?job=compile -O artifacts.zip
60unzip artifacts.zip
61```
62
63Copy the binary to somewhere on your path like /usr/local/bin
64
65## Usage
66
67```sh
68nimcoon "emacs"
69
70# If your search query has multiple words, use quotes
71nimcoon "nim lang"
72
73# Play audio of the first search result
74nimcoon -m -l "counting stars"
75
76# Download audio of the first search result
77nimcoon -mld "counting stars"
78
79# Play direct video link
80nimcoon https://www.youtube.com/watch?v=QOEMv0S8AcA
81
82# Add -d to download or -m to select only audio or both
83nimcoon -md https://www.youtube.com/watch?v=hT_nvWreIhg
84```
85
86After the search results are displayed, you can enter a number to play one
87result, "all" to play all the results or "q" to quit the program.
88
89If a number is entered, after the selected search result is played, the results
90are redisplayed, so that you can play the other results without having to search
91again.
92
93### Command line arguments
94
95| **Arguments** | **Explanation** |
96|-------------------|--------------------------------------------|
97| -m, --music | Play Music only, no video |
98| -l, --lucky | Try your luck with the first search result |
99| -f, --full-screen | Play video in full screen |
100| -d, --download | Download video or music |
101
102Feel free to use these options in any combination. NimCoon will show a helpful
103error message if you pick incompatible options.
104
105## Development
106
107One-liner for compiling and running
108
109```sh
110nim c -d:ssl -r src/nimcoon.nim 'nim lang'
111```