mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 18:25:54 -07:00
fix title (remove space) (#287)
This commit is contained in:
parent
3e4176423c
commit
4d8aa2dc0d
1 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ const details = () => ({
|
||||||
Type: 'Audio',
|
Type: 'Audio',
|
||||||
Operation: 'Transcode',
|
Operation: 'Transcode',
|
||||||
Description: 'This plugin can convert any 2.0 audio track/s to AAC and can create downmixed audio tracks. \n\n',
|
Description: 'This plugin can convert any 2.0 audio track/s to AAC and can create downmixed audio tracks. \n\n',
|
||||||
Version: '2.3',
|
Version: '2.4',
|
||||||
Tags: 'pre-processing,ffmpeg,audio only,configurable',
|
Tags: 'pre-processing,ffmpeg,audio only,configurable',
|
||||||
Inputs: [{
|
Inputs: [{
|
||||||
name: 'aac_stereo',
|
name: 'aac_stereo',
|
||||||
|
|
@ -114,7 +114,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
&& has6Channel === false
|
&& has6Channel === false
|
||||||
&& file.ffProbeData.streams[i].channels === 8
|
&& file.ffProbeData.streams[i].channels === 8
|
||||||
) {
|
) {
|
||||||
ffmpegCommandInsert += `-map 0:${i} -c:a:${audioIdx} ac3 -ac 6 -metadata:s:a:${audioIdx} title="5.1 " `;
|
ffmpegCommandInsert += `-map 0:${i} -c:a:${audioIdx} ac3 -ac 6 -metadata:s:a:${audioIdx} title="5.1" `;
|
||||||
response.infoLog += '☒Audio track is 8 channel, no 6 channel exists. Creating 6 channel from 8 channel. \n';
|
response.infoLog += '☒Audio track is 8 channel, no 6 channel exists. Creating 6 channel from 8 channel. \n';
|
||||||
convert = true;
|
convert = true;
|
||||||
}
|
}
|
||||||
|
|
@ -124,7 +124,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
&& has2Channel === false
|
&& has2Channel === false
|
||||||
&& file.ffProbeData.streams[i].channels === 6
|
&& file.ffProbeData.streams[i].channels === 6
|
||||||
) {
|
) {
|
||||||
ffmpegCommandInsert += `-map 0:${i} -c:a:${audioIdx} aac -ac 2 -metadata:s:a:${audioIdx} title="2.0 " `;
|
ffmpegCommandInsert += `-map 0:${i} -c:a:${audioIdx} aac -ac 2 -metadata:s:a:${audioIdx} title="2.0" `;
|
||||||
response.infoLog += '☒Audio track is 6 channel, no 2 channel exists. Creating 2 channel from 6 channel. \n';
|
response.infoLog += '☒Audio track is 6 channel, no 2 channel exists. Creating 2 channel from 6 channel. \n';
|
||||||
convert = true;
|
convert = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue