From a81b7658a894be67304a473f5f3004fa7384247c Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 10 Feb 2019 21:46:13 +0100 Subject: [PATCH] Make the mandatory metadata warning generic This should close #95. --- libmat2/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmat2/video.py b/libmat2/video.py index 9dc13e1..4f15b19 100644 --- a/libmat2/video.py +++ b/libmat2/video.py @@ -14,9 +14,9 @@ class AbstractFFmpegParser(exiftool.ExiftoolParser): def remove_all(self) -> bool: if self.meta_key_value_whitelist: - logging.warning('The format of "%s" (video/mp4) has some mandatory ' + logging.warning('The format of "%s" (%s) has some mandatory ' 'metadata fields; mat2 filled them with standard ' - 'data.', self.filename) + 'data.', self.filename, ', '.join(self.mimetypes)) cmd = [_get_ffmpeg_path(), '-i', self.filename, # input file '-y', # overwrite existing output file