mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 18:41:54 +08:00
advanced cmd options for streamer
This commit is contained in:
@@ -132,6 +132,8 @@ class Streamer: # pylint: disable=too-many-instance-attributes
|
||||
process_name_prefix: str,
|
||||
|
||||
cmd: List[str],
|
||||
cmd_remove: List[str],
|
||||
cmd_append: List[str],
|
||||
|
||||
**params_kwargs: Any,
|
||||
) -> None:
|
||||
@@ -148,7 +150,11 @@ class Streamer: # pylint: disable=too-many-instance-attributes
|
||||
|
||||
self.__process_name_prefix = process_name_prefix
|
||||
|
||||
self.__cmd = cmd
|
||||
self.__cmd = [
|
||||
cmd[0], # Executable
|
||||
*filter((lambda item: item not in cmd_remove), cmd[1:]),
|
||||
*cmd_append,
|
||||
]
|
||||
|
||||
self.__params = _StreamerParams(**params_kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user