Minor fixes

merge-requests/67/head
Moe 2019-06-05 16:06:59 -07:00
parent 88094d07f2
commit b2b3e574d8
2 changed files with 3 additions and 1 deletions

View File

@ -325,6 +325,7 @@ module.exports = function(s,config,lang){
if(filter.command && currentConfig.detector_command_enable === '1' && !s.group[d.ke].mon[d.id].detector_command){
s.group[d.ke].mon[d.id].detector_command = s.createTimeout(s.group[d.ke].mon[d.id].detector_command,currentConfig.detector_command_timeout,10)
var detector_command = addEventDetailsToString(d,currentConfig.detector_command)
if(detector_command === '')return
exec(detector_command,{detached: true})
}
}

View File

@ -538,7 +538,8 @@ module.exports = function(s,config,lang){
}
s.getVideoStorageIndex = function(video){
var details = s.parseJSON(video.details)
var storageId = details.storageId || s.group[video.ke].mon[video.id].addStorageId
var storageId = details.storageId
if(s.group[video.ke] && s.group[video.ke].mon[video.id] && s.group[video.ke].mon[video.id].addStorageId)storageId = s.group[video.ke].mon[video.id].addStorageId
if(storageId){
return s.group[video.ke].addStorageUse[storageId]
}