From dc5947659249df90f5f5d4ec9116e260117e65a2 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Sun, 19 Apr 2020 21:52:34 +0700 Subject: [PATCH] Updated utilsController.js Suppress more ffmpeg/ffprobe error messages --- controllers/utilsController.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/controllers/utilsController.js b/controllers/utilsController.js index 5c2d349..51059c8 100644 --- a/controllers/utilsController.js +++ b/controllers/utilsController.js @@ -292,12 +292,15 @@ self.generateThumbs = async (name, extname, force) => { return false } } catch (error) { + // TODO: Parse ffmpeg/ffprobe errors into concise error messages (get rid of versions info) // Suppress error logging for errors matching these patterns const errorString = error.toString() const suppress = [ /Input file contains unsupported image format/, /Invalid data found when processing input/, - /File does not have valid required data/ + /File does not have valid required data/, + /Could not find codec parameters/, + /Duplicate element/ ] if (!suppress.some(t => t.test(errorString)))