Permalink
Browse files

updating client identification

  • Loading branch information...
1 parent 4b2a343 commit 8836d5b752080161cc338bd179a7878566b8e02c @tenderlove committed Aug 2, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −1 lib/earworm/client.rb
  2. +0 −2 lib/earworm/fingerprint.rb
View
@@ -10,7 +10,9 @@ def identify(options = {})
if options.key?(:file)
post_opts = {
'cid' => @client_id,
- 'cvr' => 'Example 0.9.3',
+ 'cvr' => "Earworm #{VERSION}",
+ 'rmd' => 1,
+ 'enc' => '',
}.merge(Fingerprint.new(options[:file]).to_hash)
end
xml = Net::HTTP.post_form(URI.parse(URL), post_opts).body
@@ -32,8 +32,6 @@ def to_hash
'brt' => 0,
'fmt' => 'wav',
'dur' => info[:milliseconds],
- 'rmd' => 1,
- 'enc' => '',
}
end

0 comments on commit 8836d5b

Please sign in to comment.