mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Also Remove any Subs tagged with SDH (#278)
This commit is contained in:
parent
56bcebb4d8
commit
303dc24f93
1 changed files with 3 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
try {
|
||||
// Check if inputs.commentary is set to true
|
||||
// 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.
|
||||
if (
|
||||
inputs.commentary === true
|
||||
|
|
@ -135,7 +135,8 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
.includes('commentary')
|
||||
|| file.ffProbeData.streams[i].tags.title
|
||||
.toLowerCase()
|
||||
.includes('description'))
|
||||
.includes('description')
|
||||
|| file.ffProbeData.streams[i].tags.title.toLowerCase().includes('sdh'))
|
||||
) {
|
||||
ffmpegCommandInsert += `-map -0:s:${subtitleIdx} `;
|
||||
response.infoLog += `☒Subtitle stream 0:s:${subtitleIdx} detected as being descriptive, removing. \n`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue