youpy-ruby-echonest 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/echonest/api.rb +5 -0
- data/lib/echonest/version.rb +1 -1
- metadata +4 -3
data/lib/echonest/api.rb
CHANGED
@@ -159,6 +159,11 @@ module Echonest
|
|
159
159
|
response = request(method, :md5 => md5)
|
160
160
|
|
161
161
|
block.call(response)
|
162
|
+
rescue Echonest::Api::Error => e
|
163
|
+
if e.message =~ /Analysis not ready/
|
164
|
+
sleep 20 # wait for serverside analysis
|
165
|
+
get_trackinfo(method, filename, &block)
|
166
|
+
end
|
162
167
|
rescue Error => e
|
163
168
|
if e.message == 'Invalid parameter: unknown MD5 file hash'
|
164
169
|
upload(filename)
|
data/lib/echonest/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: youpy-ruby-echonest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- youpy
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-08-31 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- lib/echonest.rb
|
74
74
|
has_rdoc: true
|
75
75
|
homepage: http://ruby-echonest.rubyforge.org
|
76
|
+
licenses:
|
76
77
|
post_install_message:
|
77
78
|
rdoc_options:
|
78
79
|
- --title
|
@@ -104,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
105
|
requirements: []
|
105
106
|
|
106
107
|
rubyforge_project: ruby-echonest
|
107
|
-
rubygems_version: 1.
|
108
|
+
rubygems_version: 1.3.5
|
108
109
|
signing_key:
|
109
110
|
specification_version: 2
|
110
111
|
summary: An Ruby interface for Echo Nest Developer API
|