remove path from config
This commit is contained in:
parent
16d511f0cb
commit
b873187e1e
@ -290,13 +290,12 @@ export default {
|
|||||||
const playoutConfigPath = newConf.playout_config.match(/.*\//)
|
const playoutConfigPath = newConf.playout_config.match(/.*\//)
|
||||||
const playoutConfigFile = newConf.playout_config.replace(/(.*\/|\.yml)/g, '').split('-')
|
const playoutConfigFile = newConf.playout_config.replace(/(.*\/|\.yml)/g, '').split('-')
|
||||||
|
|
||||||
const engineServicePath = newConf.engine_service.match(/.*\//)
|
const engineService = newConf.engine_service.split('-')
|
||||||
const engineServiceFile = newConf.engine_service.replace(/(.*\/|\.conf)/g, '').split('-')
|
|
||||||
|
|
||||||
newConf.id = config.length + 1
|
newConf.id = config.length + 1
|
||||||
newConf.channel = `Channel ${Math.random().toString(36).substring(7)}`
|
newConf.channel = `Channel ${Math.random().toString(36).substring(7)}`
|
||||||
newConf.playout_config = `${playoutConfigPath}${playoutConfigFile[0]}-${String(parseInt(playoutConfigFile[1]) + 1).padStart(3, '0')}.yml`
|
newConf.playout_config = `${playoutConfigPath}${playoutConfigFile[0]}-${String(parseInt(playoutConfigFile[1]) + 1).padStart(3, '0')}.yml`
|
||||||
newConf.engine_service = `${engineServicePath}${engineServiceFile[0]}-${String(parseInt(engineServiceFile[1]) + 1).padStart(3, '0')}.conf`
|
newConf.engine_service = `${engineService[0]}-${String(parseInt(engineService[1]) + 1).padStart(3, '0')}`
|
||||||
|
|
||||||
config.push(newConf)
|
config.push(newConf)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user