tvdbr 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tvdbr/client.rb +2 -2
- data/lib/tvdbr/version.rb +1 -1
- metadata +3 -3
data/lib/tvdbr/client.rb
CHANGED
@@ -30,7 +30,7 @@ module Tvdbr
|
|
30
30
|
updates = self.find_updates_since(options[:since])
|
31
31
|
updates[:series].each do |series_id|
|
32
32
|
series = self.find_series_by_id(series_id)
|
33
|
-
block.call(series)
|
33
|
+
block.call(series) if series && series.title
|
34
34
|
end if updates[:series].respond_to?(:each)
|
35
35
|
end
|
36
36
|
|
@@ -40,7 +40,7 @@ module Tvdbr
|
|
40
40
|
updates = self.find_updates_since(options[:since])
|
41
41
|
updates[:episodes].each do |episode_id|
|
42
42
|
episode = self.find_episode_by_id(episode_id)
|
43
|
-
block.call(episode)
|
43
|
+
block.call(episode) if episode && episode.name
|
44
44
|
end if updates[:episodes].respond_to?(:each)
|
45
45
|
end
|
46
46
|
|
data/lib/tvdbr/version.rb
CHANGED
metadata
CHANGED