|
|
|
@ -98,7 +98,9 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|
|
|
const { index } = subStream;
|
|
|
|
const { index } = subStream;
|
|
|
|
if (fs.existsSync(`${subsFile}`)) {
|
|
|
|
if (fs.existsSync(`${subsFile}`)) {
|
|
|
|
response.infoLog += `${lang}.srt already exists. Skipping!\n`;
|
|
|
|
response.infoLog += `${lang}.srt already exists. Skipping!\n`;
|
|
|
|
} else if (title.toLowerCase().includes('commentary') || title.toLowerCase().includes('description')) {
|
|
|
|
} else if (typeof title === 'string'
|
|
|
|
|
|
|
|
&& (title.toLowerCase().includes('commentary')
|
|
|
|
|
|
|
|
|| title.toLowerCase().includes('description'))) {
|
|
|
|
response.infoLog += `Stream ${i} ${lang}.srt is a ${title} track. Skipping!\n`;
|
|
|
|
response.infoLog += `Stream ${i} ${lang}.srt is a ${title} track. Skipping!\n`;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
response.infoLog += `Extracting ${lang}.srt\n`;
|
|
|
|
response.infoLog += `Extracting ${lang}.srt\n`;
|
|
|
|
|