Skip to content

Instantly share code, notes, and snippets.

@ymendel
Created August 25, 2008 16:49
Show Gist options
  • Save ymendel/7106 to your computer and use it in GitHub Desktop.
Save ymendel/7106 to your computer and use it in GitHub Desktop.
#!/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