Created
September 15, 2011 21:03
-
-
Save suryagaddipati/1220480 to your computer and use it in GitHub Desktop.
rdio-lyrics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
MusixMatch::API::Base.api_key = <your key> | |
artist = %x[osascript -e 'tell app "Rdio" to get the artist of the current track'] | |
song = %x[osascript -e 'tell app "Rdio" to get the name of the current track'] | |
puts MusixMatch.i_m_feeling_lucky("#{artist} - #{song}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment