~tardypad/dotfiles

ref: f37f64d54c959fb7ec9796c00b8a3f7d4bbbd08c dotfiles/files/docs/shell/somafm.scd -rw-r--r-- 777 bytes
f37f64d5 — Damien Tardy-Panis Only show task name if -n option is set 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
somafm(1perso)

# NAME

somafm - Display SomaFM channels information

# SYNOPSIS

somafm *channels*

somafm *direct_url* _channel_

somafm *playlist* _channel_

# DESCRIPTION

Print SomaFM channels information

# OPTIONS

None

# OPERANDS

*channels*
	Prints list of all channels with their information

*direct_url*
	Prints the URL to a channel stream

*playlist*
	Prints the URL to a channel playlist

_channel_
	Identifier of the channel

# ENVIRONMENT VARIABLES

_XDG_CACHE_HOME_
	Path to user-specific base directory to store cached data++
If unset, defaults to $HOME/.cache

# FILES

_$XDG_CACHE_HOME/somafm_channels.json_
	File used as cache for the list of channels

# DEPENDENCIES

- curl
- date with '%s' format #FIXME: This script is not POSIX compliant
- jq
- stat