tvdbr 0.0.8 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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