]>
Commit | Line | Data |
---|---|---|
f7735b43 | 1 | # NimCoon |
726cf1a7 | 2 | |
3e3ba843 | 3 | Play videos from YouTube and PeerTube from the |
44978125 JN |
4 | command line using your preferred desktop media player. |
5 | ||
a6c167a7 JN |
6 | This application is implemented in [Nim language](https://nim-lang.org) using |
7 | only 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 | 23 | Nim Coon depends on the following: |
7d08d1af JN |
24 | - youtube-dl |
25 | - mpv (recommended) or vlc | |
52ecc638 | 26 | - peerflix (for magnet links) |
7d08d1af | 27 | |
3f6de5cb | 28 | Download the latest build from GitlabCI (amd64 GNU/Linux only). |
44978125 | 29 | |
c4aeb618 | 30 | ```sh |
3c20e75c | 31 | wget https://gitlab.com/njoseph/nimcoon/-/jobs/artifacts/master/download?job=compile -O artifacts.zip |
c4aeb618 JN |
32 | unzip artifacts.zip |
33 | ``` | |
34 | ||
44978125 | 35 | |
763f653f | 36 | For other platforms, you can install from source by running the following command: |
44978125 | 37 | |
3f6de5cb | 38 | ```sh |
763f653f | 39 | nimble install |
44978125 JN |
40 | ``` |
41 | ||
3f6de5cb | 42 | ## Usage |
44978125 JN |
43 | |
44 | ```sh | |
763f653f | 45 | nimcoon "emacs" |
44978125 | 46 | |
c4aeb618 | 47 | # If your search query has multiple words, use quotes |
763f653f | 48 | nimcoon "nim lang" |
f135dfc7 | 49 | |
763f653f | 50 | # Play audio of the first search result |
3c20e75c | 51 | nimcoon -m -l "counting stars" |
763f653f JN |
52 | |
53 | # Download audio of the first search result | |
54 | nimcoon -mld "counting stars" | |
55 | ||
56 | # Play direct video link | |
57 | nimcoon https://www.youtube.com/watch?v=QOEMv0S8AcA | |
58 | ||
59 | # Add -d to download or -m to select only audio or both | |
60 | nimcoon -md https://www.youtube.com/watch?v=hT_nvWreIhg | |
44978125 | 61 | ``` |
c4aeb618 | 62 | |
763f653f JN |
63 | After the search results are displayed, you can enter a number to play one |
64 | result, "all" to play all the results or "q" to quit the program. | |
65 | ||
66 | If a number is entered, after the selected search result is played, the results | |
67 | are redisplayed, so that you can play the other results without having to search | |
68 | again. | |
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 |
79 | Feel free to use these options in any combination. NimCoon will show a helpful |
80 | error message if you pick incompatible options. | |
81 | ||
3f6de5cb JN |
82 | ## Development |
83 | ||
84 | One-liner for compiling and running | |
c4aeb618 JN |
85 | |
86 | ```sh | |
763f653f | 87 | nim c -d:ssl -r src/nimcoon.nim 'nim lang' |
68fd8100 | 88 | ``` |