Fix error in DTS detection where profile is not set
This commit is contained in:
parent
c6292e14dd
commit
e7c224f335
@ -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 ++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user