]> njoseph.me Git - nimcoon.git/blame - README.md
Update README before release
[nimcoon.git] / README.md
CommitLineData
f7735b43 1# NimCoon
726cf1a7 2
3e3ba843 3Play videos from YouTube and PeerTube from the
44978125
JN
4command line using your preferred desktop media player.
5
a6c167a7
JN
6This application is implemented in [Nim language](https://nim-lang.org) using
7only the standard library.
8
3c20e75c 9![nimcoon screenshot with search term 'baby yoda'](screenshot.png)
44978125
JN
10
11## Features
12
13- [x] Search for videos using keywords
763f653f 14- [x] Stream videos and music from YouTube
52ecc638 15- [x] Play direct links from YouTube and PeerTube
763f653f 16- [x] Stream video and music from magnet links
e9f0c7d0 17- [x] Download music
d2ebe4d2 18- [x] Download video
44978125
JN
19- [ ] Configuration options
20
3f6de5cb 21## Installation
44978125 22
3c20e75c 23Nim Coon depends on the following:
7d08d1af
JN
24- youtube-dl
25- mpv (recommended) or vlc
52ecc638 26- peerflix (for magnet links)
7d08d1af 27
3f6de5cb 28Download the latest build from GitlabCI (amd64 GNU/Linux only).
44978125 29
c4aeb618 30```sh
3c20e75c 31wget https://gitlab.com/njoseph/nimcoon/-/jobs/artifacts/master/download?job=compile -O artifacts.zip
c4aeb618
JN
32unzip artifacts.zip
33```
34
44978125 35
763f653f 36For other platforms, you can install from source by running the following command:
44978125 37
3f6de5cb 38```sh
763f653f 39nimble install
44978125
JN
40```
41
3f6de5cb 42## Usage
44978125
JN
43
44```sh
763f653f 45nimcoon "emacs"
44978125 46
c4aeb618 47# If your search query has multiple words, use quotes
763f653f 48nimcoon "nim lang"
f135dfc7 49
763f653f 50# Play audio of the first search result
3c20e75c 51nimcoon -m -l "counting stars"
763f653f
JN
52
53# Download audio of the first search result
54nimcoon -mld "counting stars"
55
56# Play direct video link
57nimcoon https://www.youtube.com/watch?v=QOEMv0S8AcA
58
59# Add -d to download or -m to select only audio or both
60nimcoon -md https://www.youtube.com/watch?v=hT_nvWreIhg
44978125 61```
c4aeb618 62
763f653f
JN
63After the search results are displayed, you can enter a number to play one
64result, "all" to play all the results or "q" to quit the program.
65
66If a number is entered, after the selected search result is played, the results
67are redisplayed, so that you can play the other results without having to search
68again.
69
70### Command line arguments
4827df7a 71
3c20e75c
JN
72| **Arguments** | **Explanation** |
73|-------------------|--------------------------------------------|
74| -m, --music | Play Music only, no video |
75| -l, --lucky | Try your luck with the first search result |
76| -f, --full-screen | Play video in full screen |
e9f0c7d0 77| -d, --download | Download video or music |
4827df7a 78
763f653f
JN
79Feel free to use these options in any combination. NimCoon will show a helpful
80error message if you pick incompatible options.
81
3f6de5cb
JN
82## Development
83
84One-liner for compiling and running
c4aeb618
JN
85
86```sh
763f653f 87nim c -d:ssl -r src/nimcoon.nim 'nim lang'
68fd8100 88```