From 686b399363f8df719dbd80f090c26d86706be48a Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 4 Oct 2023 16:44:03 -0700 Subject: [PATCH] exif: only extract unknowns for lp This is extremely slow for big MKV files, for example Signed-off-by: Varun Patil --- lib/Exif.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Exif.php b/lib/Exif.php index 904f10b9..2331d259 100644 --- a/lib/Exif.php +++ b/lib/Exif.php @@ -12,7 +12,7 @@ class Exif { private const FORBIDDEN_EDIT_MIMES = ['image/bmp', 'image/x-dcraw', 'video/MP2T']; private const EXIFTOOL_TIMEOUT = 30000; - private const EXIFTOOL_ARGS = ['-api', 'QuickTimeUTC=1', '-n', '-U', '-json', '--b']; + private const EXIFTOOL_ARGS = ['-api', 'QuickTimeUTC=1', '-n', '-json', '--b']; /** Opened instance of exiftool when running in command mode */ private static $staticProc; @@ -370,7 +370,7 @@ class Exif public static function getExifWithDuplicates(string $path) { - return self::getExifFromLocalPathWithSeparateProc($path, ['-G4']); + return self::getExifFromLocalPathWithSeparateProc($path, ['-U', '-G4']); } private static function getExiftool(): array