lib/mediainfo.rb in mediainfo-1.4.0 vs lib/mediainfo.rb in mediainfo-1.5.0

- old
+ new

@@ -87,10 +87,10 @@ from_uri(URI(input)) end def self.run(input = nil) raise ArgumentError, 'Your input cannot be blank.' if input.nil? - command = "#{location} '#{input}' --Output=XML" + command = "#{location} \"#{input}\" --Output=XML" raw_response, errors, status = Open3.capture3(command) unless status.exitstatus == 0 raise ExecutionError, "Execution of '#{command}' failed: \n #{errors.red}" end return raw_response