A unified interface to online radios using mpd/mplayer as backend


Keywords
music, program, public-domain, web, Propose Tags, http://musicpd.org, http://www.mplayerhq.hu, http://8tracks.com, http://cmd.fm, http://radioreddit.com, http://douban.fm, http://jing.fm, , Index, Web.Radio, Web.Radio.Cmd, Web.Radio.Douban, Web.Radio.EightTracks, Web.Radio.EightTracks.Explore, Web.Radio.Jing, Web.Radio.Reddit, lord-2.20150122.tar.gz, browse, Package description, Package maintainers, rnons, edit package information
License
Other
Install
cabal install lord-2.20150122

Documentation

lord

Lord is a unified command line interface to several online radios.

By default, lord uses mpd as backend. When mpd is available, lord can be run as daemon (default) or in foreground (with --no-daemon option). When mpd is unavailable (not running), lord will fallback to use mplayer. Mplayer is run in foreground to allow user controlling playback with mplayer keybindings.

Supported radios:

Lord is on hackage, you can install with

cabal install lord

Commands

lord -h
lord status
lord toggle
lord kill

lord 8tracks listen [<mix_id> | <mix_url>] [--no-daemon]
lord 8tracks search <keywords>
lord 8tracks [featured | trending | newest]

lord cmd listen <genre> [--no-daemon]
lord cmd genres

lord douban listen [<channel_id> | <album_url> | <musician_url> | <musician_name> | <programme_url] [--no-daemon]
lord douban search <keywords>
lord douban [hot | trending]

lord jing listen <keywords> [--no-daemon]

lord reddit listen <genre> [--no-daemon]
lord reddit genres

bash completion

optparse-applicative has built-in support for bash completion of command line options and arguments.

With bash, add to your .bashrc:

source <(lord --bash-completion-script `which lord`)

With zsh, add to your .zshrc:

autoload bashcompinit
bashcompinit
source <(lord --bash-completion-script `which lord`)

NOTE: lord --bash-completion-script `which lord` can generate the bash_completion file on the fly. However, you can also use the installed version. The bash_completion file is installed to somewhere like ~/.cabal/share/x86_64-linux-ghc-7.6.3/lord-2.20131220/bash_completion.d/lord.