mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 10:45:53 -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 "".
|
// 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 {
|
try {
|
||||||
ffmpegCommandInsert += ' -metadata title="" ';
|
ffmpegCommandInsert += ' -metadata title="" ';
|
||||||
convert = true;
|
convert = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue