mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Update var name
This commit is contained in:
parent
5c0dd11ec5
commit
f4793738a9
1 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ const details = () => ({
|
|||
Tags: 'pre-processing,ffmpeg,audio only,',
|
||||
Inputs: [
|
||||
{
|
||||
name: 'overwriteTrack',
|
||||
name: 'overwriteTracks',
|
||||
type: 'boolean',
|
||||
defaultValue: true,
|
||||
inputUI: {
|
||||
|
|
@ -59,7 +59,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
let hasnonAC3SurroundTrack = false;
|
||||
|
||||
let shouldTranscode = true;
|
||||
if (inputs.overwriteTrack === false) {
|
||||
if (inputs.overwriteTracks === false) {
|
||||
const hasAc3_6Stream = file.ffProbeData.streams.filter((row) => row.channels === 6
|
||||
&& row.codec_name === 'ac3');
|
||||
if (hasAc3_6Stream.length > 0) {
|
||||
|
|
@ -84,7 +84,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
&& currStream.codec_name !== 'ac3'
|
||||
&& currStream.codec_type.toLowerCase() === 'audio'
|
||||
) {
|
||||
if (inputs.overwriteTrack === true) {
|
||||
if (inputs.overwriteTracks === true) {
|
||||
ffmpegCommandInsert += ` -c:a:${audioIdx} ac3 `;
|
||||
} else {
|
||||
ffmpegCommandInsert += `-map 0:a:${audioIdx} -c:a:${audioIdx} ac3 `;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue