Rdio CLI

A simple command line interface for Rdio. Requires the desktop app to be installed since playback controls talk to the app via AppleScript.

Installation

gem install rdio-cli

Usage

Rdio CLI is powered by GLI and has a Git-like (sub)command interface:

$ rdio current
Now playing: All The Roadrunning / Mark Knopfler And Emmylou Harris / Real Live Roadrunning
$ rdio current "♫ %{track} ♫"
♫ All The Roadrunning ♫

Lyrics

Plain text, terminal-friendly lyrics are served up via makeitpersonal.co:

~ rdio current
Now playing: That Old Time Feeling / Rodney Crowell / This One's for Him: A Tribute to Guy Clark

~ rdio lyrics
Sorry, We don't have lyrics for this song yet.

~ rdio lyrics --artist="Guy Clark"

And that old time feeling goes sneakin' down the hall
Like an old gray cat in winter, keepin' close to the wall
And that old time feeling comes stumblin' up the street
Like an old salesman kickin' the papers from his feet

And that old time feeling draws circles around the block
Like old women with no children, holdin' hands with the clock
And that old time feeling falls on its face in the park
Like an old wino prayin' he can make it till it's dark

And that old time feeling comes and goes in the rain
Like an old man with his checkers, dyin' to find a game
And that old time feeling plays for beer in bars
Like an old blues-time picker who don't recall who you are

And that old time feeling limps through the night on a crutch
Like an old soldier wonderin' if he's paid too much
And that old time feeling rocks and spits and cries
Like an old lover rememberin' the girl with the clear blue eyes

And that old time feeling goes sneakin' down the hall
Like an old gray cat in winter, keepin' close to the wall

Full usage help

$ rdio help
NAME
    rdio - Simple CLI for Rdio

SYNOPSIS
    rdio [global options] command [command options] [arguments...]

VERSION
    0.0.1

GLOBAL OPTIONS
    --access_secret=arg   - (default: )
    --access_token=arg    - (default: )
    --consumer_key=arg    - (default: )
    --consumer_secret=arg - (default: )
    --help                - Show this message
    --version             -

COMMANDS
    authorize, auth - Authorize Rdio account
    browse          - Open the current track in Rdio player
    current         - Display the current track info
    help            - Shows a list of commands or help for one command
    initconfig      - Initialize the config file using current global options
    link            - Get a shareable link for the current track
    lyrics          - Show lyrics for a track
    mute            - Mute the Rdio player
    next            - Skip to next track
    pause           - Pause the player
    play            - Plays the current track
    previous, prev  - Play previous track
    quit, q         - Quit Rdio
    snag            - Add the current track or album to your collection
    toggle          - Toggle playback
    user            - Show the current Rdio user
    version, v      - Get CLI and application version info
    volume, vol     - Set volume for player

TODO

  • [✓] Snag current track to collection
  • [✓] Snag current album to collection
  • [ ] Create a playlist
  • [ ] Follow a user
  • [ ] Tail a user?

Credits

Copyright (c) 2012 Wynn Netherland. See LICENSE for details.