lib/ayadn/tvshow.rb in ayadn-2.1 vs lib/ayadn/tvshow.rb in ayadn-3.0

- old
+ new

@@ -1,25 +1,29 @@ # encoding: utf-8 module Ayadn class TvShow + # Warning + # comment next line + require_relative "ids" + # uncomment and insert your own id + # TVDB_API_KEY = "" + begin require 'tvdb_party' rescue LoadError => e puts "\nAYADN: Error while loading an external resource\n\n" puts "RUBY: #{e}\n\n" exit end - AYADN_TVDB_API_KEY = 'E874ACBC542CAA53' - attr_accessor :language, :name, :poster_url, :banner_url, :plot, :text, :imdb_link, :tag, :link, :date def initialize @language = 'en' @view = View.new - @tvdb = TvdbParty::Search.new(AYADN_TVDB_API_KEY) + @tvdb = TvdbParty::Search.new(TVDB_API_KEY) @status = Status.new end def find title res = find_all(title)