Giter Club home page Giter Club logo

rdio-cli's Introduction

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

Shows

Upcoming events are served via last.fm/api

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

~ rdio shows
Here are 10 upcoming events for Rodney Crowell
Toronto             Canada          Fri, 22 Mar 2013 20:00:00 
North Bethesda, MD  United States   Fri, 29 Mar 2013 19:30:00 
London              United Kingdom  Thu, 09 May 2013 20:00:00 
Birmingham          United Kingdom  Fri, 10 May 2013 16:16:01 
Belfast             Ireland         Sun, 12 May 2013 19:30:00 
Dublin              Ireland         Mon, 13 May 2013 20:00:00 
Brussels            Belgium         Mon, 20 May 2013 13:20:01 
Paris               France          Wed, 22 May 2013 20:00:00 
København C         Denmark         Sun, 26 May 2013 20:00:00 
Berlin              Germany         Thu, 30 May 2013 00:38:01

~ rdio shows --artist="Johnny Cash"
No upcoming events for Johnny Cash

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
    shows           - Show upcoming events for an artist
    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

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

rdio-cli's People

Contributors

cezarsa avatar etiennelem avatar jasperla avatar pengwynn avatar resistorsoftware avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rdio-cli's Issues

Oauth doesn't work in Ruby 2

I'm guessing this has something to do with the black magic going on in the custom rdio-simple oauth stuff.

› rdio user
error: 795: unexpected token at '<h1>403 Developer Inactive</h1>'

This probably belongs upstream with rdio-simple, but maybe this project should just use a normal oauth gem instead of rdio-simple altogether.

Auto completion (zsh)

Not quite sure this should be in the official gem, so I’ll juste leave it as an issue open for discussion.

Controlling Rdio from the terminal is amazing, but you’d want these commands to be a little bit faster. For some reason I always end up typing rdio curretn

Anywho, I have a version (https://github.com/EtienneLem/rdio-cli) that add dynamic zsh auto completion.
All you need is this setting in your .zshrc file

Works like a charm 😄

undefined method `+ after entering auth info

After installing version 0.0.1 of the gem and running rdio auth, I'm getting a fatal error: undefined method+' for nil:NilClass` after entering my API key and secret. I'm using Ruby 1.9.3-preview. Any ideas what's going on here? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.