diff --git a/lib/command/convert.rb b/lib/command/convert.rb index 7f9fe8ce..36d4519b 100644 --- a/lib/command/convert.rb +++ b/lib/command/convert.rb @@ -240,9 +240,9 @@ def convert_novel_main(target, index) ignore_default: @options["ignore-default"], }) @novel_data = Downloader.get_data_by_target(target) - @options["yokogaki"] = NovelSetting.load(target)["enable_yokogaki"] end return unless res + @options["yokogaki"] = res[:setting]["enable_yokogaki"] array_of_converted_txt_path = res[:converted_txt_paths] ebook_file = nil array_of_converted_txt_path.each do |converted_txt_path| diff --git a/lib/novelconverter.rb b/lib/novelconverter.rb index 1c12a469..d55a49d5 100644 --- a/lib/novelconverter.rb +++ b/lib/novelconverter.rb @@ -50,7 +50,8 @@ def self.convert(target, options = {}) novel_converter = new(setting, options[:output_filename], options[:display_inspector]) return { converted_txt_paths: novel_converter.convert_main, - use_dakuten_font: novel_converter.use_dakuten_font + use_dakuten_font: novel_converter.use_dakuten_font, + setting: setting, } end nil @@ -81,7 +82,8 @@ def self.convert_file(filename, options = {}) end { converted_txt_paths: novel_converter.convert_main(text), - use_dakuten_font: novel_converter.use_dakuten_font + use_dakuten_font: novel_converter.use_dakuten_font, + setting: setting, } end