tvdbr 0.0.3 → 0.0.4

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 CHANGED
@@ -69,6 +69,7 @@ module Tvdbr
69
69
  series_url = "/series/#{series_id}"
70
70
  series_url << "/all" if options[:all]
71
71
  result = self.get_with_key(series_url)['Data']
72
+ return nil unless result && result['Series']
72
73
  return result if options[:all]
73
74
  return result["Series"] if options[:raw]
74
75
  Series.new(self, result["Series"])
@@ -80,6 +81,7 @@ module Tvdbr
80
81
  def find_episode_by_id(episode_id, options={})
81
82
  episode_url = "/episodes/#{episode_id}"
82
83
  result = self.get_with_key(episode_url)['Data']
84
+ return nil unless result && result['Episode']
83
85
  return result["Episode"] if options[:raw]
84
86
  Episode.new(self, result["Episode"])
85
87
  end
data/lib/tvdbr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tvdbr
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tvdbr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Miso