Check for extra empties

This commit is contained in:
HaveAGitGat 2021-01-28 09:23:23 +01:00
parent 98bd5a115f
commit 3f616d4406

View file

@ -78,7 +78,13 @@ function plugin(file, librarySettings, inputs) {
}
// Check if overall file metadata title is not empty, if it's not empty set to "".
if (typeof file.meta.Title !== 'undefined') {
if (
!(
typeof file.meta.Title === 'undefined'
|| file.meta.Title === '""'
|| file.meta.Title === ''
)
) {
try {
ffmpegCommandInsert += ' -metadata title="" ';
convert = true;