def each_updated_episode(options={}, &block)
      updates = options[:since] ? find_updates_since(options[:since]) : find_static_updates(options[:period])
      updates[:episodes].each do |episode_id|
        episode = self.find_episode_by_id(episode_id)
        block.call(episode) if episode && episode.name
      end if updates[:episodes].respond_to?(:each)
    end
def each_updated_episode(options={}, &block)
      updates = options[:since] ? find_updates_since(options[:since]) : find_static_updates(options[:period])
      updates[:episodes].each do |episode_id|
        episode = self.find_episode_by_id(episode_id)
        block.call(episode) if episode && episode.name
      end if updates[:episodes].respond_to?(:each)
    end
Yields the block for every updated episode
 tvdb.each_updated_episode(:since => 1.day.ago) { |s| Episode.find_by_tvdb_id(s.id).title = s.title }
 tvdb.each_updated_episode(:period => :day) { |s| Episode.find_by_tvdb_id(s.id).title = s.title }