mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
fix: remove title tag instead of setting it to "" (#232)
This commit is contained in:
parent
c2cf207a30
commit
831c4b0372
1 changed files with 6 additions and 6 deletions
|
|
@ -111,7 +111,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
)
|
||||
) {
|
||||
try {
|
||||
ffmpegCommandInsert += ' -metadata title="" ';
|
||||
ffmpegCommandInsert += ' -metadata title= ';
|
||||
convert = true;
|
||||
} catch (err) {
|
||||
// Error
|
||||
|
|
@ -132,7 +132,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
)
|
||||
) {
|
||||
response.infoLog += `☒Video stream title is not empty. Removing title from stream ${i} \n`;
|
||||
ffmpegCommandInsert += ` -metadata:s:v:${videoIdx} title="" `;
|
||||
ffmpegCommandInsert += ` -metadata:s:v:${videoIdx} title= `;
|
||||
convert = true;
|
||||
}
|
||||
// Increment videoIdx.
|
||||
|
|
@ -160,7 +160,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
if (file.ffProbeData.streams[i].tags.title.split('.').length - 1 > 3) {
|
||||
try {
|
||||
response.infoLog += `☒More then 3 full stops in audio title. Removing title from stream ${i} \n`;
|
||||
ffmpegCommandInsert += ` -metadata:s:a:${audioIdx} title="" `;
|
||||
ffmpegCommandInsert += ` -metadata:s:a:${audioIdx} title= `;
|
||||
convert = true;
|
||||
} catch (err) {
|
||||
// Error
|
||||
|
|
@ -170,7 +170,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
try {
|
||||
if (custom_title_matching.indexOf(file.ffProbeData.streams[i].tags.title.toLowerCase()) !== -1) {
|
||||
response.infoLog += `☒Audio matched custom input. Removing title from stream ${i} \n`;
|
||||
ffmpegCommandInsert += ` -metadata:s:a:${audioIdx} title="" `;
|
||||
ffmpegCommandInsert += ` -metadata:s:a:${audioIdx} title= `;
|
||||
convert = true;
|
||||
}
|
||||
} catch (err) {
|
||||
|
|
@ -203,7 +203,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
if (file.ffProbeData.streams[i].tags.title.split('.').length - 1 > 3) {
|
||||
try {
|
||||
response.infoLog += `☒More then 3 full stops in subtitle title. Removing title from stream ${i} \n`;
|
||||
ffmpegCommandInsert += ` -metadata:s:s:${subtitleIdx} title="" `;
|
||||
ffmpegCommandInsert += ` -metadata:s:s:${subtitleIdx} title= `;
|
||||
convert = true;
|
||||
} catch (err) {
|
||||
// Error
|
||||
|
|
@ -213,7 +213,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
try {
|
||||
if (custom_title_matching.indexOf(file.ffProbeData.streams[i].tags.title.toLowerCase()) !== -1) {
|
||||
response.infoLog += `☒Subtitle matched custom input. Removing title from stream ${i} \n`;
|
||||
ffmpegCommandInsert += ` -metadata:s:s:${subtitleIdx} title="" `;
|
||||
ffmpegCommandInsert += ` -metadata:s:s:${subtitleIdx} title= `;
|
||||
convert = true;
|
||||
}
|
||||
} catch (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue