mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Bug fix
This commit is contained in:
parent
ad7ec9d2b9
commit
17ae08abf3
1 changed files with 3 additions and 15 deletions
|
|
@ -13,25 +13,16 @@ module.exports.details = function details() {
|
|||
{
|
||||
name: "codecs_to_transcode",
|
||||
tooltip: `Specifiy the codecs which you'd like to transcode
|
||||
|
||||
\\nExample:\\n
|
||||
|
||||
ac3
|
||||
|
||||
\\nExample:\\n
|
||||
|
||||
eac3,ac3,aac
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
`,
|
||||
},
|
||||
{
|
||||
name: "codec",
|
||||
tooltip: `Specify the codec you'd like to transcode into:
|
||||
|
||||
\\n aac
|
||||
\\n ac3
|
||||
\\n eac3
|
||||
|
|
@ -40,13 +31,8 @@ module.exports.details = function details() {
|
|||
\\n mp2
|
||||
\\n mp3
|
||||
\\n truehd
|
||||
|
||||
\\nExample:\\n
|
||||
eac3
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
`,
|
||||
},
|
||||
|
|
@ -96,6 +82,8 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
|
|||
) {
|
||||
ffmpegCommand += ` -map 0:${i} -c:${i} ${encoder} `;
|
||||
hasStreamsToTranscode = true;
|
||||
} else if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio") {
|
||||
ffmpegCommand += ` -map 0:${i}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -116,4 +104,4 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
|
|||
response.infoLog += `☒ File has streams which aren't in desired codec! \n`;
|
||||
return response;
|
||||
}
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue