mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 17:55:55 -07:00
Fix lint
This commit is contained in:
parent
79bce89388
commit
a2dd698acd
1 changed files with 6 additions and 5 deletions
|
|
@ -17,6 +17,7 @@ function details() {
|
||||||
function plugin(file) {
|
function plugin(file) {
|
||||||
const response = {
|
const response = {
|
||||||
processFile: false,
|
processFile: false,
|
||||||
|
// eslint-disable-next-line no-useless-escape
|
||||||
preset: ',-map 0 -codec copy -bsf:v \"filter_units=remove_types=6\"',
|
preset: ',-map 0 -codec copy -bsf:v \"filter_units=remove_types=6\"',
|
||||||
container: `.${file.container}`,
|
container: `.${file.container}`,
|
||||||
handBrakeMode: false,
|
handBrakeMode: false,
|
||||||
|
|
@ -35,13 +36,13 @@ function plugin(file) {
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
// If not, check for Closed Captions in the streams
|
// If not, check for Closed Captions in the streams
|
||||||
const {streams} = file.ffProbeData;
|
const { streams } = file.ffProbeData;
|
||||||
for (const stream in streams) {
|
streams.forEach((stream) => {
|
||||||
if (stream.closed_captions) {
|
if (stream.closed_captions) {
|
||||||
response.processFile = true;
|
response.processFile = true;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
response.infoLog += response.processFile ? '☒This file has burnt closed captions \n'
|
response.infoLog += response.processFile ? '☒This file has burnt closed captions \n'
|
||||||
: '☑Closed captions have not been detected on this file \n';
|
: '☑Closed captions have not been detected on this file \n';
|
||||||
return response;
|
return response;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue