mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 01:36:08 -07:00
Change plugin
It derped out when you left the subtitle box empty, now it doesn't.
This commit is contained in:
parent
3286b51dcf
commit
41dccb2e36
1 changed files with 1 additions and 1 deletions
|
|
@ -230,8 +230,8 @@ function buildAudioConfiguration(_inputs, file, logger) {
|
||||||
function buildSubtitleConfiguration(inputs, file, logger) {
|
function buildSubtitleConfiguration(inputs, file, logger) {
|
||||||
var configuration = new Configurator(["-c:s copy"]);
|
var configuration = new Configurator(["-c:s copy"]);
|
||||||
|
|
||||||
|
if (!inputs.wanted_subtitle_languages) return configuration;
|
||||||
var languages = inputs.wanted_subtitle_languages.split(",");
|
var languages = inputs.wanted_subtitle_languages.split(",");
|
||||||
if (languages.length === 0) return configuration;
|
|
||||||
|
|
||||||
loopOverStreamsOfType(file, "subtitle", function (stream, id) {
|
loopOverStreamsOfType(file, "subtitle", function (stream, id) {
|
||||||
if (stream.codec_name === "eia_608") {
|
if (stream.codec_name === "eia_608") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue