diff --git a/lib/epubmaker/producer.rb b/lib/epubmaker/producer.rb index 744bd46cc..b712a6271 100644 --- a/lib/epubmaker/producer.rb +++ b/lib/epubmaker/producer.rb @@ -212,7 +212,6 @@ def isbn_hyphen def complement @params["htmlext"] = "html" if @params["htmlext"].nil? defaults = ReVIEW::Configure.new.merge({ - "cover" => "#{@params["bookname"]}.#{@params["htmlext"]}", "language" => "ja", "date" => Time.now.strftime("%Y-%m-%d"), "modified" => Time.now.strftime("%Y-%02m-%02dT%02H:%02M:%02SZ"), @@ -291,6 +290,9 @@ def complement @params["htmlversion"] = 5 if @params["epubversion"] >= 3 + @params.maker = "epubmaker" + @params["cover"] = "#{@params["bookname"]}.#{@params["htmlext"]}" unless @params["cover"] + %w[bookname title].each do |k| raise "Key #{k} must have a value. Abort." unless @params[k] end