README.md 1.13 KB
Newer Older
Jonny Schäfer's avatar
Jonny Schäfer committed
1
# tubus
Jonny Schäfer's avatar
Jonny Schäfer committed
2
### command-line interface for video hosting services.
Jonny Schäfer's avatar
Jonny Schäfer committed
3

Jonny Schäfer's avatar
Jonny Schäfer committed
4
Tubus is currently a proof of concept command-line interface for youtube.
Jonny Schäfer's avatar
Jonny Schäfer committed
5
6
Many functions will be redone.

Jonny Schäfer's avatar
Jonny Schäfer committed
7
8
9
10
11
12
13
14
15
### Installation
```
mkdir -p ~/go/src ~/go/pkg ~/go/bin
GOPATH="~/go" go get gitlab.cs.fau.de/since/tubus
```

The source files will be fetched and automatically compiled.
The resulting binary file is stored in ~/go/bin

Jonny Schäfer's avatar
Jonny Schäfer committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
### Usage

To search for a video just input realted keywords.

#### Commands

command			| description
--- 			| ---
`:<number> [player]`	|select list item (optional: video player/script*)
`::<page_number>`	|show the specified page
`:user <username>`	|show videos of the given user
`:sub`			|show subscriptions
`:subadd <username>`	|subscribe to the given or current user
`:subdel <username>`	|delete subscription of the given or current user
`:new`			|show newest videos of subscribed users
`:set <player>`		|set the default video player
`:help`			|show this help
`:q`			|quit the program

*Scripts placed in the `~/.config/tubus/scripts` directory are preferred
to other executable programs in `$PATH`. The video url will be passed as
first command-line argument.
Jonny Schäfer's avatar
Jonny Schäfer committed
38