diff --git a/api/encoder/encoder.mjs b/api/encoder/encoder.mjs index a7b7d19..cb27257 100644 --- a/api/encoder/encoder.mjs +++ b/api/encoder/encoder.mjs @@ -169,6 +169,7 @@ class EncoderManager { } command = command.replace('-f decklink ', `${settings.format_code} -f decklink ${settings.device} `) } + command = command.replace('$date$', new Date().toISOString().replace('T','_').replace(/:/g,'').split('.')[0]) let process = await runCommand('', command, this.fromEncoder.bind(this), true) this.attempting.value = process