mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Check for extra empties
This commit is contained in:
parent
98bd5a115f
commit
3f616d4406
1 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue