Fix error in DTS detection where profile is not set

This commit is contained in:
MrMeeb 2024-04-28 09:38:13 +00:00
parent c6292e14dd
commit e7c224f335

View File

@ -4,10 +4,24 @@ const details = () => ({
Name: 'MrMeeb Extract Subtitles',
Type: 'Subtitle',
Operation: 'Transcode',
Description: 'Automatically extracts SRT subtitles to external files and removes the embedded ones.',
Description: 'Automatically extracts SRT subtitles to external files and removes the embedded ones. Created to fix a bug where Infuse cannot auto-select embedded forced subtitles',
Version: '0.1',
Tags: 'pre-processing',
Inputs: [],
Inputs: [
{
name: 'forced_only',
type: 'boolean',
defaultValue: false,
inputUI: {
type: 'dropdown',
options: [
'true',
'false',
],
},
tooltip: `Only extract forced subtitles`,
},
],
});
// eslint-disable-next-line no-unused-vars
@ -56,6 +70,7 @@ const details = () => ({
let subIdx = -1; // The stream index of the current subtitle stream, relative to all subtitle steams
console.log(` === Running Extract Subs function === `)
response.jobLog += `Hello!`
// Identify all subtitles
for (let i = 0; i < file.ffProbeData.streams.length; i ++) {