mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 18:45:53 -07:00
Update Tdarr_Plugin_x7ac_Remove_Closed_Captions.js
This commit is contained in:
parent
3acaafef5f
commit
07c75473e0
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ function details() {
|
||||||
function plugin(file) {
|
function plugin(file) {
|
||||||
const response = {
|
const response = {
|
||||||
processFile: false,
|
processFile: false,
|
||||||
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,
|
||||||
FFmpegMode: true,
|
FFmpegMode: true,
|
||||||
|
|
@ -35,7 +35,7 @@ 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
|
||||||
var streams = file.ffProbeData.streams;
|
const streams = file.ffProbeData.streams;
|
||||||
for (const stream in streams) {
|
for (const stream in streams) {
|
||||||
if (stream.closed_captions) {
|
if (stream.closed_captions) {
|
||||||
response.processFile = true;
|
response.processFile = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue