From 788d7f268168e45961d2303e729d1ced71f93f58 Mon Sep 17 00:00:00 2001 From: Michael Klein Date: Tue, 12 Dec 2017 11:42:46 -0600 Subject: [PATCH] =?UTF-8?q?Support=20mediainfo's=20ever-changing=20output?= =?UTF-8?q?=20format=20=F0=9F=98=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mediainfo.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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