Add:Option to disable backup of audio files in embed metadata tool #1370

This commit is contained in:
advplyr 2023-01-07 15:16:52 -06:00
parent 7ccf36a896
commit 5a26704c32
5 changed files with 68 additions and 252 deletions

View file

@ -100,8 +100,6 @@ function secondsToTimestamp(seconds, includeMs = false, alwaysIncludeHours = fal
}
module.exports.secondsToTimestamp = secondsToTimestamp
module.exports.msToTimestamp = (ms, includeMs) => secondsToTimestamp(ms / 1000, includeMs)
module.exports.reqSupportsWebp = (req) => {
if (!req || !req.headers || !req.headers.accept) return false
return req.headers.accept.includes('image/webp') || req.headers.accept === '*/*'