Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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\"}'"
23 changes: 16 additions & 7 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 All @@ -23,7 +23,10 @@ jobs:
git config --global core.autocrlf false
git config --global core.eol lf

- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
Expand All @@ -46,16 +49,22 @@ jobs:
contents: write

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/setup-node@v3
with:
node-version: '18.x'

- run: npm i && npm i -g typescript && rm -rdf ./FlowPlugins && tsc
- run: npm i && npm i -g typescript && rm -rdf ./FlowPlugins && tsc -v && tsc

- uses: stefanzweifel/git-auto-commit-action@v5
## fix this check
if: github.event.pull_request.head.repo.full_name == github.repository
with:
commit_message: Apply auto-build changes
commit_message: Apply auto-build changes

- run: |
(git diff --quiet HEAD -- 2>/dev/null && echo "No uncommitted changes" \
|| (echo "Error - Uncommitted changes found." && git --no-pager diff HEAD && exit 1))
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
Loading