Created
August 25, 2008 16:49
-
-
Save ymendel/7106 to your computer and use it in GitHub Desktop.
This file contains 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 'rubygems' | |
require 'earworm' | |
song_file = ARGV.first | |
unless song_file | |
puts 'song file needed' | |
exit | |
end | |
ear = Earworm::Client.new(YOUR_MUSICDNS_KEY) | |
p ear.identify(:file => song_file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment