encoder: Add date text support in encoder command
All checks were successful
/ deploy (push) Successful in -2040h37m40s

This commit is contained in:
Jonatan Nilsson 2024-04-06 14:59:27 +00:00
parent 91e7395046
commit d714a56db3

View file

@ -169,6 +169,7 @@ class EncoderManager {
} }
command = command.replace('-f decklink ', `${settings.format_code} -f decklink ${settings.device} `) 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) let process = await runCommand('', command, this.fromEncoder.bind(this), true)
this.attempting.value = process this.attempting.value = process