]> njoseph.me Git - nimcoon.git/blame_incremental - README.md
Add option to download video
[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
15- [x] Stream music
16- [x] Play direct links from YouTube and PeerTube
17- [x] Stream video from magnet links
18- [x] Download music
19- [x] Download video
20- [ ] Configuration options
21
22## Installation
23
24Nim Coon depends on the following:
25- youtube-dl
26- mpv (recommended) or vlc
27- peerflix (for magnet links)
28
29Download the latest build from GitlabCI (amd64 GNU/Linux only).
30
31```sh
32wget https://gitlab.com/njoseph/nimcoon/-/jobs/artifacts/master/download?job=compile -O artifacts.zip
33unzip artifacts.zip
34```
35
36
37For other platforms, create a release artifact using the following command:
38
39```sh
40nim c -d:ssl -d:release nimcoon.nim
41```
42
43Copy the binary to a directory on your PATH such as `/usr/local/bin`
44
45## Usage
46
47```sh
48nimcoon emacs
49
50# If your search query has multiple words, use quotes
51nimcoon 'nim lang'
52
53# Advanced: Play audio of the first search result
54nimcoon -m -l "counting stars"
55```
56
57### Commandline arguments
58
59| **Arguments** | **Explanation** |
60|-------------------|--------------------------------------------|
61| -m, --music | Play Music only, no video |
62| -l, --lucky | Try your luck with the first search result |
63| -f, --full-screen | Play video in full screen |
64| -d, --download | Download video or music |
65
66## Development
67
68One-liner for compiling and running
69
70```sh
71nim c -d:ssl -r nimcoon.nim 'nim lang'
72```