Minor fixes
parent
88094d07f2
commit
b2b3e574d8
|
@ -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})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue