mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 02:35:54 -07:00
Various Updates
1) New plugin that uses CPU to convert to H265. 2) Change to FFMPEG NVidia plugin to specifiy bitrate cutoff. 3) Fix random infolog "2" in CleanTitle 4) Update descriptive audio check in CleanAudio and CleanSubs to look for "sdh" 5) Correct OrderStreams mentioning that "Audio not first" when audio should be second.
This commit is contained in:
parent
fc9692bacb
commit
5735ae6759
7 changed files with 179 additions and 24 deletions
|
|
@ -7,7 +7,7 @@ function details() {
|
|||
Operation: "Clean",
|
||||
Description: `[TESTING]This plugin keeps only specified language audio tracks & can tags those that have an unknown language. \n\n`,
|
||||
Version: "2.00",
|
||||
Link: "",
|
||||
Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz3CleanAudio.js",
|
||||
Tags:'pre-processing,ffmpeg,audio only,configurable',
|
||||
Inputs: [
|
||||
{
|
||||
|
|
@ -38,6 +38,7 @@ function details() {
|
|||
eng
|
||||
|
||||
\\nExample:\\n
|
||||
por
|
||||
`
|
||||
},
|
||||
{
|
||||
|
|
@ -104,7 +105,7 @@ function plugin(file, librarySettings, inputs) {
|
|||
} catch (err) { }
|
||||
|
||||
try {
|
||||
if (inputs.commentary.toLowerCase() == "true" && file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio" && (file.ffProbeData.streams[i].tags.title.toLowerCase().includes('commentary') || file.ffProbeData.streams[i].tags.title.toLowerCase().includes('description'))) {
|
||||
if (inputs.commentary.toLowerCase() == "true" && file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio" && (file.ffProbeData.streams[i].tags.title.toLowerCase().includes('commentary') || file.ffProbeData.streams[i].tags.title.toLowerCase().includes('description') || file.ffProbeData.streams[i].tags.title.toLowerCase().includes('sdh'))) {
|
||||
audioStreamsRemoved++
|
||||
ffmpegCommandInsert += `-map -0:a:${audioIdx} `
|
||||
response.infoLog += `☒Audio stream detected as being Commentary or Description, removing. Audio stream 0:a:${audioIdx} - ${file.ffProbeData.streams[i].tags.title}. \n`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue