diff --git a/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js b/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js index 8d65edc..c4f4fda 100644 --- a/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js +++ b/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js @@ -5,7 +5,7 @@ function details() { Name: "Migz-Transcode Using CPU & FFMPEG", Type: "Video", Operation:"Transcode", - Description: `[TESTING]Files will be transcoded using CPU with ffmpeg, settings are dependant on file bitrate, working by the logic that H265 can support the same ammount of data at half the bitrate of H264. \n\n`, + Description: `Files will be transcoded using CPU with ffmpeg, settings are dependant on file bitrate, working by the logic that H265 can support the same ammount of data at half the bitrate of H264. \n\n`, Version: "1.0", Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js", Tags:'pre-processing,ffmpeg,video only,configurable,h265', diff --git a/Community/Tdarr_Plugin_MC93_Migz2CleanTitle.js b/Community/Tdarr_Plugin_MC93_Migz2CleanTitle.js index 8152c82..98388e7 100644 --- a/Community/Tdarr_Plugin_MC93_Migz2CleanTitle.js +++ b/Community/Tdarr_Plugin_MC93_Migz2CleanTitle.js @@ -5,10 +5,10 @@ function details() { Name: "Migz-Clean title metadata", Type: "Video", Operation: "Clean", - Description: `[TESTING]This plugin removes video title metadata if it exists. \n\n`, + Description: `This plugin removes title metadata from video/audio/subtitles, if it exists. \n\n`, Version: "1.10", Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz2CleanTitle.js", - Tags:'pre-processing,ffmpeg,video only', + Tags:'pre-processing,ffmpeg', } } @@ -26,6 +26,8 @@ function plugin(file) { var ffmpegCommandInsert = '' var videoIdx = 0 + var audioIdx = 0 + var subtitleIdx = 0 var convert = false if (file.fileMedium !== "video") { @@ -53,14 +55,32 @@ function plugin(file) { } catch (err) { } videoIdx++ } + if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio") { + try { + if (typeof file.ffProbeData.streams[i].tags.title != 'undefined') { + ffmpegCommandInsert += ` -metadata:s:a:${audioIdx} title="" ` + convert = true + } + } catch (err) { } + audioIdx++ + } + if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "subtitle") { + try { + if (typeof file.ffProbeData.streams[i].tags.title != 'undefined') { + ffmpegCommandInsert += ` -metadata:s:s:${subtitleIdx} title="" ` + convert = true + } + } catch (err) { } + subtitleIdx++ + } } - if(convert == true){ + if (convert == true){ response.infoLog += "☒File has title metadata \n" response.preset = `,${ffmpegCommandInsert} -c copy` response.reQueueAfter = true; response.processFile = true; - }else{ + } else { response.infoLog += "☑File has no title metadata \n" } return response diff --git a/Community/Tdarr_Plugin_MC93_Migz3CleanAudio.js b/Community/Tdarr_Plugin_MC93_Migz3CleanAudio.js index 2c2c0b4..b869a85 100644 --- a/Community/Tdarr_Plugin_MC93_Migz3CleanAudio.js +++ b/Community/Tdarr_Plugin_MC93_Migz3CleanAudio.js @@ -5,7 +5,7 @@ function details() { Name: "Migz-Clean audio streams", Type: "Audio", Operation: "Clean", - Description: `[TESTING]This plugin keeps only specified language audio tracks & can tags those that have an unknown language. \n\n`, + Description: `This plugin keeps only specified language audio tracks & can tags those that have an unknown language. \n\n`, Version: "2.00", Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz3CleanAudio.js", Tags:'pre-processing,ffmpeg,audio only,configurable', diff --git a/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js b/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js index 1a92f97..7fa687d 100644 --- a/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js +++ b/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js @@ -5,7 +5,7 @@ function details() { Name: "Migz-Clean subtitle streams", Type: "subtitless", Operation: "Clean", - Description: `[TESTING] This plugin keeps only specified language subtitle tracks & can tag those that have an unknown language. \n\n`, + Description: `This plugin keeps only specified language subtitle tracks & can tag those that have an unknown language. \n\n`, Version: "2.00", Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js", Tags:'pre-processing,ffmpeg,subtitle only,configurable', diff --git a/Community/Tdarr_Plugin_MC93_Migz5ConvertAudio.js b/Community/Tdarr_Plugin_MC93_Migz5ConvertAudio.js index 89d8552..f204ec7 100644 --- a/Community/Tdarr_Plugin_MC93_Migz5ConvertAudio.js +++ b/Community/Tdarr_Plugin_MC93_Migz5ConvertAudio.js @@ -5,7 +5,7 @@ function details() { Name: "Migz-Convert audio streams", Type: "Audio", Operation: "Transcode", - Description: `[TESTING]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.00", Link: "", Tags:'pre-processing,ffmpeg,audio only,configurable', diff --git a/Community/Tdarr_Plugin_MC93_Migz6OrderStreams.js b/Community/Tdarr_Plugin_MC93_Migz6OrderStreams.js index 4ae880c..98441cb 100644 --- a/Community/Tdarr_Plugin_MC93_Migz6OrderStreams.js +++ b/Community/Tdarr_Plugin_MC93_Migz6OrderStreams.js @@ -5,7 +5,7 @@ function details() { Name: "Migz-Organize Streams", Type: "Streams", Operation: "Organize", - Description: `[TESTING]Organizes streams into Video first, then Audio (2ch, 6ch, 8ch) and finally Subtitles. \n\n`, + Description: `Organizes streams into Video first, then Audio (2ch, 6ch, 8ch) and finally Subtitles. \n\n`, Version: "1.00", Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz6OrderStreams.js", Tags:'pre-processing,ffmpeg,'