Last active
August 29, 2015 14:11
-
-
Save mikker/c2b8bc95ad2162f2cdda to your computer and use it in GitHub Desktop.
Search Rdio for currently playing track on DR P6
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/env ruby | |
| require 'uri' | |
| track = `whodis-p6`.chomp.gsub("'", '') | |
| search_url = "http://www.rdio.com/search/#{URI.escape track}/" | |
| system "open -a Rdio #{search_url}" | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You also need this https://gist.github.com/mikker/a181b22887c2f22d064c