Tdarr_Plugins icon indicating copy to clipboard operation
Tdarr_Plugins copied to clipboard

[Plugin Request] Running external script

Open Jorman opened this issue 1 year ago • 0 comments

Hi, as always, thank you for your work!

I am convincing myself to create a Flow for my media, actually I am noticing that there are many around, done very well, that could become the basis for my Flow.

However, I have noticed over time, that some media files, fortunately it rarely happens, do not have the language tag set, this would create a problem with the Flow I have in mind, that is, transforming any DTS track of my language and English to another format, since my TV does not support DTS, whereas if the audio track is of a secondary language, then I would remove it. So I made a script that runs a check on the "Unknown" tracks, identifies the track and updates the language tag, of course it only works on .mkv files, but at least it is something.

Maybe something already exists in Tdarr that identifies the track and I haven't seen it yet, but alternatively I was thinking, would it be possible to have a Plugin to run an external script? Maybe a script that just returns an output status, if it's 0 it's okay, otherwise everything else is considered an error.

What do you think? Make sense?

Jorman avatar Mar 17 '25 09:03 Jorman