Skip to content

Instantly share code, notes, and snippets.

@gssariev
gssariev / gist:87f8faf15e339a0c7f3bb5d6197b3f7a
Created June 13, 2024 13:37
Modified version by Sociedelic that includes the option to choose bitrate
const details = () => ({
id: 'Tdarr_Plugin_00td_action_add_audio_stream_codec',
Stage: 'Pre-processing',
Name: 'Add Audio Stream Codec',
Type: 'Video',
Operation: 'Transcode',
Description: `
This action has a built-in filter. Additional filters can be added above. \n\n
If the following audio track does not exist, Tdarr will try to add it using existing audio streams.
@gssariev
gssariev / gist:0586cfd571b494069c525a360bf110d7
Created May 30, 2024 11:32
Modified plugin to keep both original and transcoded audio tracks
/* eslint-disable */
const details = () => {
return {
id: "Tdarr_Plugin_a9hd_FFMPEG_Transcode_Specific_Audio_Stream_Codecs",
Stage: "Pre-processing",
Name: "Transcode Specific Audio Stream Codecs",
Type: "Audio",
Operation: "Transcode",
Description: `[Contains built-in filter] Transcode audio streams with specific codecs into another codec while keeping the original. \n\n`,
Version: "1.01",
@gssariev
gssariev / gist:0b93a11e809c38e035388e4157b42c9a
Last active May 30, 2024 11:38
Henk's plugin v3 - handling undefined audio tracks. All undefined audio tracks will be tagged with either a user-specified tag or with the original language tag (if no user tags have been specified)
/* eslint-disable no-await-in-loop */
module.exports.dependencies = ['axios@0.27.2', '@cospired/i18n-iso-languages'];
const details = () => ({
id: 'Tdarr_Plugin_henk_Keep_Native_Lang_Plus_Eng',
Stage: 'Pre-processing',
Name: 'Remove all langs except native and English',
Type: 'Audio',
Operation: 'Transcode',
Description: `This is a modified version made by gsariev of the original plugin. This plugin will remove all language audio tracks except the 'native' and user-specified languages.
@gssariev
gssariev / Mod_Tdarr_Plugin_henk_Keep_Native_Lang_Plus_Other_Spec_Lang.txt
Last active April 29, 2024 14:05
Modified version of Henk's 'Keep Native Lang Plus Eng' Tdarr plugin to keep only the original language track & user specified language tracks. Works with both Radarr & Sonarr.
/* eslint-disable no-await-in-loop */
module.exports.dependencies = ['axios@0.27.2', '@cospired/i18n-iso-languages'];
const details = () => ({
id: 'Tdarr_Plugin_henk_Keep_Native_Lang_Plus_Eng',
Stage: 'Pre-processing',
Name: 'Remove all langs except native and English',
Type: 'Audio',
Operation: 'Transcode',
Description: `This is a modified version made by gsariev of the original plugin. This plugin will remove all language audio tracks except the 'native' and user-specified languages.