mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-17 03:06:27 -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,',
|
Tags: 'pre-processing,ffmpeg,audio only,',
|
||||||
Inputs: [
|
Inputs: [
|
||||||
{
|
{
|
||||||
name: 'overwriteTrack',
|
name: 'overwriteTracks',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
defaultValue: true,
|
defaultValue: true,
|
||||||
inputUI: {
|
inputUI: {
|
||||||
|
|
@ -59,7 +59,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
let hasnonAC3SurroundTrack = false;
|
let hasnonAC3SurroundTrack = false;
|
||||||
|
|
||||||
let shouldTranscode = true;
|
let shouldTranscode = true;
|
||||||
if (inputs.overwriteTrack === false) {
|
if (inputs.overwriteTracks === false) {
|
||||||
const hasAc3_6Stream = file.ffProbeData.streams.filter((row) => row.channels === 6
|
const hasAc3_6Stream = file.ffProbeData.streams.filter((row) => row.channels === 6
|
||||||
&& row.codec_name === 'ac3');
|
&& row.codec_name === 'ac3');
|
||||||
if (hasAc3_6Stream.length > 0) {
|
if (hasAc3_6Stream.length > 0) {
|
||||||
|
|
@ -84,7 +84,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
&& currStream.codec_name !== 'ac3'
|
&& currStream.codec_name !== 'ac3'
|
||||||
&& currStream.codec_type.toLowerCase() === 'audio'
|
&& currStream.codec_type.toLowerCase() === 'audio'
|
||||||
) {
|
) {
|
||||||
if (inputs.overwriteTrack === true) {
|
if (inputs.overwriteTracks === true) {
|
||||||
ffmpegCommandInsert += ` -c:a:${audioIdx} ac3 `;
|
ffmpegCommandInsert += ` -c:a:${audioIdx} ac3 `;
|
||||||
} else {
|
} else {
|
||||||
ffmpegCommandInsert += `-map 0:a:${audioIdx} -c:a:${audioIdx} ac3 `;
|
ffmpegCommandInsert += `-map 0:a:${audioIdx} -c:a:${audioIdx} ac3 `;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue