diff --git a/lib/mediainfo.rb b/lib/mediainfo.rb index 51f6d7a..796a25a 100644 --- a/lib/mediainfo.rb +++ b/lib/mediainfo.rb @@ -514,7 +514,8 @@ def inspect private def mediainfo! - @last_command = "#{path} #{@escaped_full_filename} --Output=XML" + output_format = mediainfo_version > '17.0.0' ? 'OLDXML' : 'XML' + @last_command = "#{path} #{@escaped_full_filename} --Output=#{output_format}" run_command! end