Also Remove any Subs tagged with SDH (#278)

make-only-subtitle-default
Fish2 4 years ago committed by GitHub
parent 56bcebb4d8
commit 303dc24f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -125,7 +125,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
try { try {
// Check if inputs.commentary is set to true // Check if inputs.commentary is set to true
// AND if stream is subtitle // AND if stream is subtitle
// AND then checks for stream titles with the following "commentary or description". // AND then checks for stream titles with the following "commentary, description, sdh".
// Removing any streams that are applicable. // Removing any streams that are applicable.
if ( if (
inputs.commentary === true inputs.commentary === true
@ -135,7 +135,8 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
.includes('commentary') .includes('commentary')
|| file.ffProbeData.streams[i].tags.title || file.ffProbeData.streams[i].tags.title
.toLowerCase() .toLowerCase()
.includes('description')) .includes('description')
|| file.ffProbeData.streams[i].tags.title.toLowerCase().includes('sdh'))
) { ) {
ffmpegCommandInsert += `-map -0:s:${subtitleIdx} `; ffmpegCommandInsert += `-map -0:s:${subtitleIdx} `;
response.infoLog += `☒Subtitle stream 0:s:${subtitleIdx} detected as being descriptive, removing. \n`; response.infoLog += `☒Subtitle stream 0:s:${subtitleIdx} detected as being descriptive, removing. \n`;

Loading…
Cancel
Save