tvdbr 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tvdbr/client.rb +3 -0
- data/lib/tvdbr/version.rb +1 -1
- metadata +3 -3
data/lib/tvdbr/client.rb
CHANGED
@@ -52,6 +52,9 @@ module Tvdbr
|
|
52
52
|
return [] if result.blank? || result['Series'].blank?
|
53
53
|
result = result['Series'].is_a?(Array) ? result['Series'] : [result['Series']]
|
54
54
|
result.first(5).map { |s| self.find_series_by_id(s['seriesid']) }
|
55
|
+
rescue StandardError => e
|
56
|
+
puts "Result for title '#{title}' could not be parsed!"
|
57
|
+
return []
|
55
58
|
end
|
56
59
|
|
57
60
|
# Returns the first series returned for a title
|
data/lib/tvdbr/version.rb
CHANGED
metadata
CHANGED