bin/whereto in where_to-1.0.1 vs bin/whereto in where_to-1.0.2
- old
+ new
@@ -63,12 +63,12 @@
Dir.chdir location
files = Dir.glob "*#{options[:ext]}"
raise WhereTo::NoFilesError.new(options[:ext], location) if files.none?
puts "I found the following files:"
- files.each { |file| puts file }
- puts ''
+ puts files
+ puts ""
WhereTo.configure do |config|
config.tvdb_api_key = ENV['TVDB_API_KEY']
end
@@ -88,9 +88,11 @@
puts "For file #{file}:"
%i{season episode_number group}.each do |field|
locator.send("#{field}=", prompt_for(field, default: locator.send(field)))
end
+
+ locator.episode_extension = @options[:extname]
locator.lookup!
locator.episode_title = prompt_for :episode_title, default: locator.episode_title
new_file = locator.locate.filename