Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Marnalas/Tdarr_Plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Marnalas committed Jul 9, 2024
2 parents ab6d499 + f87917a commit 7f789df
Show file tree
Hide file tree
Showing 189 changed files with 3,143 additions and 416 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/auto_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Auto Build

on:
push:
branches:
- master

jobs:
test:
strategy:
matrix:
node-version: [18.x]
os:
[
["ubuntu-20.04"],
]
runs-on: ${{ matrix.os }}

steps:
- name: Trigger
run: "curl -XPOST -u \"${{ secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}\" -H \"Accept: application/vnd.github.everest-preview+json\" -H \"Content-Type: application/json\" https://api.github.com/repos/HaveAGitGat/tdarr_docs/actions/workflows/build_plug_docs.yml/dispatches --data '{\"ref\": \"main\"}'"
4 changes: 2 additions & 2 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
os:
[
["ubuntu-20.04"],
["windows-2019"],
["macos-11.0"],
["windows-2022"],
["macos-14"],
]
runs-on: ${{ matrix.os }}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_action_add_audio_stream_codec',
Stage: 'Pre-processing',
Name: 'Add audio stream codec',
Name: 'Add Audio Stream Codec',
Type: 'Video',
Operation: 'Transcode',
Description: `
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_action_handbrake_basic_options',
Stage: 'Pre-processing',
Name: 'HandBrake basic options',
Name: 'HandBrake Basic Options',
Type: 'Video',
Operation: 'Transcode',
Description: `
Expand Down
12 changes: 9 additions & 3 deletions Community/Tdarr_Plugin_00td_action_handbrake_ffmpeg_custom.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_action_handbrake_ffmpeg_custom',
Stage: 'Pre-processing',
Name: 'HandBrake or FFmpeg custom arguments',
Name: 'HandBrake Or FFmpeg Custom Arguments',
Type: 'Video',
Operation: 'Transcode',
Description: `
Expand Down Expand Up @@ -70,7 +70,7 @@ HandBrake examples:
type: 'text',
},
tooltip:
'Enter the desired container',
'Enter the desired container. Set to "original" to keep the original container.',
},
],
});
Expand All @@ -91,7 +91,13 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
};

response.preset = inputs.arguments;
response.container = `.${inputs.container}`;

if (inputs.container === 'original') {
response.container = `.${file.container}`;
} else {
response.container = `.${inputs.container}`;
}

response.handbrakeMode = inputs.cli === 'handbrake';
response.ffmpegMode = inputs.cli === 'ffmpeg';
response.reQueueAfter = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_action_keep_one_audio_stream',
Stage: 'Pre-processing',
Name: 'Keep one audio stream',
Name: 'Keep One Audio Stream',
Type: 'Video',
Operation: 'Transcode',
Description: `
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_action_re_order_all_streams_v2',
Stage: 'Pre-processing',
Name: 'Re-order all streams V2',
Name: 'Re-order All Streams V2',
Type: 'Video',
Operation: 'Transcode',
Description: `
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_action_remove_audio_by_channel_count',
Stage: 'Pre-processing',
Name: 'Remove audio streams by channel count',
Name: 'Remove Audio Streams By Channel Count',
Type: 'Video',
Operation: 'Transcode',
Description: `
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_action_remove_stream_by_specified_property',
Stage: 'Pre-processing',
Name: 'Remove streams by specified property',
Name: 'Remove Streams By Specified Property',
Type: 'Video',
Operation: 'Transcode',
Description: `
This plugin removes streams based on the specified property.
Checks FFprobe 'streams' and MediaInfo 'track' properties.
`,
Version: '1.00',
Tags: 'action',
Expand Down Expand Up @@ -76,7 +77,10 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
let streamToRemove = false;
for (let i = 0; i < file.ffProbeData.streams.length; i += 1) {
try {
if (valuesToRemove.includes(String(file.ffProbeData.streams[i][propertyToCheck]))) {
if (
valuesToRemove.includes(String(file.ffProbeData.streams[i][propertyToCheck]))
|| valuesToRemove.includes(String(file.mediaInfo.track[i + 1][propertyToCheck]))
) {
response.preset += ` -map -0:${i} `;
response.infoLog += ` Removing stream ${i} which is has ${propertyToCheck}`
+ ` of ${file.ffProbeData.streams[i][propertyToCheck]} \n`;
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_00td_action_remux_container.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_action_remux_container',
Stage: 'Pre-processing',
Name: 'Remux container',
Name: 'Remux Container',
Type: 'Video',
Operation: 'Transcode',
Description: `
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_action_standardise_audio_stream_codecs',
Stage: 'Pre-processing',
Name: 'Standardise audio stream codecs',
Name: 'Standardise Audio Stream Codecs',
Type: 'Video',
Operation: 'Transcode',
Description: `
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_00td_action_transcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_action_transcode',
Stage: 'Pre-processing',
Name: 'Transcode a video file',
Name: 'Transcode A Video File',
Type: 'Video',
Operation: 'Transcode',
Description: 'Transcode a video file using ffmpeg. GPU transcoding will be used if possible.',
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_00td_filter_bit_depth.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_filter_bit_depth',
Stage: 'Pre-processing',
Name: 'Filter bit depth: 8,10,12 bit video',
Name: 'Filter Bit Depth: 8,10,12 Bit Video',
Type: 'Video',
Operation: 'Filter',
Description: 'Allow/disallow 8,10,12 bit video to be processed.',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_filter_break_stack_if_processed',
Stage: 'Pre-processing',
Name: 'Filter - break out of plugin stack if processed',
Name: 'Filter - Break Out Of Plugin Stack If Processed',
Type: 'Video',
Operation: 'Filter',
Description: `This plugin will break out of the plugin stack if the file has been processed
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_00td_filter_by_bitrate.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_filter_by_bitrate',
Stage: 'Pre-processing',
Name: 'Filter by bitrate',
Name: 'Filter By Bitrate',
Type: 'Video',
Operation: 'Filter',
Description: 'Only allow files to be transcoded which are within the lower and upper bounds (Kb) \n\n',
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_00td_filter_by_codec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_filter_by_codec',
Stage: 'Pre-processing',
Name: 'Filter by codec',
Name: 'Filter By Codec',
Type: 'Video',
Operation: 'Filter',
Description: 'Only allow specified codecs to be processed \n\n',
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_00td_filter_by_codec_tag_string.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_filter_by_codec_tag_string',
Stage: 'Pre-processing',
Name: 'Filter by codec tag string',
Name: 'Filter By Codec Tag String',
Type: 'Video',
Operation: 'Filter',
Description: 'Only allow files with specified codec tag strings to be processed \n\n',
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_00td_filter_by_file_property.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_filter_by_file_property',
Stage: 'Pre-processing',
Name: 'Filter by file property',
Name: 'Filter By File Property',
Type: 'Video',
Operation: 'Filter',
Description: `Filter by a top level file property.
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_00td_filter_by_resolution.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_filter_by_resolution',
Stage: 'Pre-processing',
Name: 'Filter by resolution',
Name: 'Filter By Resolution',
Type: 'Video',
Operation: 'Filter',
Description: 'Only allow specified resolutions to be processed \n\n',
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_00td_filter_by_size.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_filter_by_size',
Stage: 'Pre-processing',
Name: 'Filter by size',
Name: 'Filter By Size',
Type: 'Video',
Operation: 'Filter',
Description: 'Only allow files to be transcoded which are within the lower and upper bounds (MB) \n\n',
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_00td_filter_by_stream_tag.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_00td_filter_by_stream_tag',
Stage: 'Pre-processing',
Name: 'Filter by stream tag',
Name: 'Filter By Stream Tag',
Type: 'Video',
Operation: 'Filter',
Description: `Filter by stream tag value. Will check all streams. Useful for when e.g. trying to force transcoding
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_076a_re_order_audio_streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const details = () => {
return {
id: "Tdarr_Plugin_076a_re_order_audio_streams",
Stage: "Pre-processing",
Name: "Re-order audio streams",
Name: "Re-order Audio Streams",
Type: "Audio",
Operation: "Transcode",
Description: `[Contains built-in filter] Specify a language tag for Tdarr to try and put as 1st audio track \n\n`,
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_076b_re_order_subtitle_streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const details = () => {
return {
id: "Tdarr_Plugin_076b_re_order_subtitle_streams",
Stage: "Pre-processing",
Name: "Re-order subtitle streams",
Name: "Re-order Subtitle Streams",
Type: "Subtitle",
Operation: "Transcode",
Description: `[Contains built-in filter] Specify a language tag for Tdarr to try and put as 1st subtitle track \n\n`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const details = () => {
return {
id: "Tdarr_Plugin_078d_Output_embedded_subs_to_SRT_and_remove",
Stage: "Pre-processing",
Name: "Output embedded subs to SRT and remove",
Name: "Output Embedded Subs To SRT And Remove",
Type: "Video",
Operation: "Transcode",
Description: `This plugin outputs embedded subs to SRT and then removes them \n\n`,
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_43az_add_to_radarr.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const details = () => {
return {
id: 'Tdarr_Plugin_43az_add_to_radarr',
Stage: 'Post-processing',
Name: 'Add movie to Radarr after processing',
Name: 'Add Movie To Radarr After Processing',
Type: 'Video',
Operation: 'Transcode',
Description: 'Add movie to Radarr after processing \n\n',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const details = () => ({
id: 'Tdarr_Plugin_A47j_FFMPEG_NVENC_HEVC_Video_Only',
Stage: 'Pre-processing',
Name: 'FFMPEG nvenc_H265 Video Only',
Name: 'FFMPEG:nvenc_H265 Video Only',
Type: 'Video',
Operation: 'Transcode',
Description: `
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_DOOM_NVENC_Tiered_MKV_CleanAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const details = () => {
return {
id: "Tdarr_Plugin_DOOM_NVENC_Tiered_MKV_CleanAll",
Stage: 'Pre-processing',
Name: "DOOM Tiered H265 MKV, remove audio & subtitles [NVENC]",
Name: "DOOM Tiered H265 MKV, Remove Audio & Subtitles [NVENC]",
Stage: "Pre-processing",
Type: "Video",
Operation: "Transcode",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const details = () => {
return {
id: 'Tdarr_Plugin_ER01_Transcode audio and video with HW (PC and Mac)',
Stage: 'Pre-processing',
Name: 'Transcode Using QSV or VT & FFMPEG',
Name: 'Transcode Using QSV Or VT & FFMPEG',
Type: 'Video',
Operation: 'Transcode',
Description: `Files not in H265 will be transcoded into H265 using hw with ffmpeg, assuming mkv container. Plugin uses QS if the node runs on a PC, or Videotoolbox if run on a Mac.
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_Greg_MP3_FFMPEG_CPU.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports.dependencies = ['import-fresh'];
const details = () => ({
id: 'Tdarr_Plugin_Greg_MP3_FFMPEG_CPU',
Stage: 'Pre-processing',
Name: 'Audio Transcode to MP3 using CPU and FFMPEG',
Name: 'Audio Transcode To MP3 Using CPU And FFMPEG',
Type: 'Audio',
Operation: 'Transcode',
Description: '[Contains built-in filter] Convert an audio file to mp3, retaining ID3 tags, '
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_JB69_JBHEVCQSV_MinimalFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Audio: (Only one audio stream is used!!)
const details = () => ({
id: 'Tdarr_Plugin_JB69_JBHEVCQSV_MinimalFile',
Stage: 'Pre-processing',
Name: 'JB - QSV(vaapi), H265, AAC, MKV, bitrate optimized',
Name: 'JB - QSV(vaapi), H265, AAC, MKV, Bitrate Optimized',
Type: 'Video',
Operation: 'Transcode',
Description: `***You should not use this*** until you read the comments at the top of the code and understand
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_MC93_Migz1FFMPEG.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const details = () => ({
id: 'Tdarr_Plugin_MC93_Migz1FFMPEG',
Stage: 'Pre-processing',
Name: 'Migz-Transcode Using Nvidia GPU & FFMPEG',
Name: 'Migz Transcode Using Nvidia GPU & FFMPEG',
Type: 'Video',
Operation: 'Transcode',
Description: `Files not in H265 will be transcoded into H265 using Nvidia GPU with ffmpeg.
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const details = () => ({
id: 'Tdarr_Plugin_MC93_Migz1FFMPEG_CPU',
Stage: 'Pre-processing',
Name: 'Migz-Transcode Using CPU & FFMPEG',
Name: 'Migz Transcode Using CPU & FFMPEG',
Type: 'Video',
Operation: 'Transcode',
Description: `Files not in H265 will be transcoded into H265 using CPU with ffmpeg.
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_MC93_Migz1Remux.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const details = () => ({
id: 'Tdarr_Plugin_MC93_Migz1Remux',
Stage: 'Pre-processing',
Name: 'Migz-Remux container',
Name: 'Migz Remux Container',
Type: 'Video',
Operation: 'Transcode',
Description: 'Files will be remuxed into either mkv or mp4. \n\n',
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_MC93_Migz2CleanTitle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const details = () => ({
id: 'Tdarr_Plugin_MC93_Migz2CleanTitle',
Stage: 'Pre-processing',
Name: 'Migz-Clean title metadata',
Name: 'Migz Clean Title Metadata',
Type: 'Video',
Operation: 'Transcode',
Description: 'This plugin removes title metadata from video/audio/subtitles.\n\n',
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_MC93_Migz3CleanAudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const details = () => ({
id: 'Tdarr_Plugin_MC93_Migz3CleanAudio',
Stage: 'Pre-processing',
Name: 'Migz-Clean audio streams',
Name: 'Migz Clean Audio Streams',
Type: 'Audio',
Operation: 'Transcode',
Description: 'This plugin keeps only specified language tracks & can tags tracks with an unknown language. \n\n',
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const details = () => ({
id: 'Tdarr_Plugin_MC93_Migz4CleanSubs',
Stage: 'Pre-processing',
Name: 'Migz-Clean subtitle streams',
Name: 'Migz Clean Subtitle Streams',
Type: 'Subtitle',
Operation: 'Transcode',
Description: 'This plugin keeps only specified language tracks & can tag tracks with an unknown language. \n\n',
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_MC93_Migz5ConvertAudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const details = () => ({
id: 'Tdarr_Plugin_MC93_Migz5ConvertAudio',
Stage: 'Pre-processing',
Name: 'Migz-Convert audio streams',
Name: 'Migz Convert Audio Streams',
Type: 'Audio',
Operation: 'Transcode',
Description: 'This plugin can convert any 2.0 audio track/s to AAC and can create downmixed audio tracks. \n\n',
Expand Down
2 changes: 1 addition & 1 deletion Community/Tdarr_Plugin_MC93_Migz6OrderStreams.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const details = () => ({
id: 'Tdarr_Plugin_MC93_Migz6OrderStreams',
Stage: 'Pre-processing',
Name: 'Migz-Order Streams',
Name: 'Migz Order Streams',
Type: 'Any',
Operation: 'Transcode',
Description: 'Orders streams into Video first, then Audio (2ch, 6ch, 8ch) and finally Subtitles. \n\n',
Expand Down
Loading

0 comments on commit 7f789df

Please sign in to comment.