Push_auto_remove
Push_Auto_Remove
This call can remove automatic pushes from the auto_push
and the older push_auto_list
for more information look at the push_auto_list
call. Once an automatic push has been removed it is not stopped, you require the push_stop
call for that.
Removing from the auto_push
list
{
"push_auto_remove":"auto_push_ID" //removes the automatic push with the matching `auto_push_ID`
}
//or...
{
"push_auto_remove":["auto_push_ID1","auto_push_ID2","auto_push_ID3", ...] //removes multiple automatic push rules matching the `auto_push_IDs` given.
}
Removing from the older push_auto_list
To remove from the older push_auto_list
:
//Either...
{
"push_auto_remove":{EXACT ENTRY AS USED IN PUSH_AUTO_ADD}
}
//Or...
{
"push_auto_remove":[{EXACT ENTRY AS IN PUSH_AUTO_ADD}, {}, {}, ...] //Multiple entries may be removed simultaneously
}
//Or...
{
"push_auto_remove":"STREAMNAME" //Removes all entries for the given stream name.
}
//Or...
{
"push_auto_remove":["STREAMNAME", "STREAMNAME", "STREAMNAME", ...] //All entries for multiple stream names may be removed at once.
}
There is no response to this call.
Example auto_push_list information
The following is not part of the push_auto_remove
call, however handy to refer to when using the call. This is the information as listed from the push_auto_list
and contains information you need to pass to push_auto_remove
in order to delete your automatic push rule.
{
"auto_push": {
"71d6b51b668e1f24973def9210cb5644": { //auto_push_ID generated if not provided
"stream": "mylivestream", //Stream name or #Tag that should be checked for pushing
"target": "/tmp/$stream/$yday_$datetime.mkv", //stream url or file location to push/record towards
"x-LSP-notes": "notes go here!", //Optional field for notes visible in the push panel
"start_rule":["hour",11,9],
"end_rule":["hour",11,17]
},
//Etcetera
},
"push_auto_list":[ //deprecated, still available for backwards compatibility.
["mylivestream", "/tmp/$stream/$yday_$datetime.mkv", scheduletime, completetime],
//Etcetera
]
}