mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 10:15:54 -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 {
|
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…
Add table
Add a link
Reference in a new issue