mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 02:35:54 -07:00
Corrected link and code update
This commit is contained in:
parent
863093eaba
commit
830204781e
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ function details () {
|
||||||
Operation: 'Transcode',
|
Operation: 'Transcode',
|
||||||
Description: `Re-encodes all audio tracks in a given codec to another given codec.`,
|
Description: `Re-encodes all audio tracks in a given codec to another given codec.`,
|
||||||
Version: '1.00',
|
Version: '1.00',
|
||||||
Link: 'https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_henk_Add_Specific_Audio_Codec',
|
Link: 'https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_henk_Add_Specific_Audio_Codec.js',
|
||||||
Tags: 'post-processing,configurable',
|
Tags: 'post-processing,configurable',
|
||||||
|
|
||||||
Inputs: [{
|
Inputs: [{
|
||||||
|
|
@ -87,7 +87,7 @@ function plugin (file, librarySettings, inputs) {
|
||||||
if (inputs.custom_bitrate_input) {
|
if (inputs.custom_bitrate_input) {
|
||||||
bitrate += inputs.custom_bitrate_input
|
bitrate += inputs.custom_bitrate_input
|
||||||
} else if (inputs.bitrate) {
|
} else if (inputs.bitrate) {
|
||||||
bitrate += inputs.auto_adjust ? (inputs.bitrate * (currStream.channels / 2)) + 'k' : inputs.bitrate + 'k'
|
bitrate += (inputs.auto_adjust ? (inputs.bitrate * (currStream.channels / 2)) : inputs.bitrate) + 'k'
|
||||||
} else {
|
} else {
|
||||||
bitrate = '128k'
|
bitrate = '128k'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue