mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
Updated utilsController.js
Suppress more ffmpeg/ffprobe error messages
This commit is contained in:
parent
48172b0805
commit
dc59476592
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user