mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 15:21:33 +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
|
return false
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
// TODO: Parse ffmpeg/ffprobe errors into concise error messages (get rid of versions info)
|
||||||
// Suppress error logging for errors matching these patterns
|
// Suppress error logging for errors matching these patterns
|
||||||
const errorString = error.toString()
|
const errorString = error.toString()
|
||||||
const suppress = [
|
const suppress = [
|
||||||
/Input file contains unsupported image format/,
|
/Input file contains unsupported image format/,
|
||||||
/Invalid data found when processing input/,
|
/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)))
|
if (!suppress.some(t => t.test(errorString)))
|
||||||
|
Loading…
Reference in New Issue
Block a user