Guest User

Untitled

a guest
Feb 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. require 'rubygems'
  4. require 'earworm'
  5.  
  6. song_file = ARGV.first
  7.  
  8. unless song_file
  9. puts 'song file needed'
  10. exit
  11. end
  12.  
  13. ear = Earworm::Client.new(YOUR_MUSICDNS_KEY)
  14. p ear.identify(:file => song_file)
Add Comment
Please, Sign In to add comment