summaryrefslogtreecommitdiffstats
path: root/recording
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2023-03-18 03:22:33 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2023-03-22 14:08:01 +0100
commitecfb51a953dcecf7b185353531dfd56c048dfa04 (patch)
tree4c2b7ba71def07244b66344f5e7eaee27343a0e6 /recording
parentaefcc576a5b0114a2c9fafcdbd37c28e2ffd9e62 (diff)
Rename "args" to "arguments"
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'recording')
-rw-r--r--recording/src/nextcloud/talk/recording/Service.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/recording/src/nextcloud/talk/recording/Service.py b/recording/src/nextcloud/talk/recording/Service.py
index cb11a51b9..1cece1a68 100644
--- a/recording/src/nextcloud/talk/recording/Service.py
+++ b/recording/src/nextcloud/talk/recording/Service.py
@@ -37,7 +37,7 @@ from .Participant import Participant
RECORDING_STATUS_AUDIO_AND_VIDEO = 1
RECORDING_STATUS_AUDIO_ONLY = 2
-def getRecorderArgs(status, displayId, audioSinkIndex, width, height, extensionlessOutputFileName):
+def getRecorderArguments(status, displayId, audioSinkIndex, width, height, extensionlessOutputFileName):
"""
Returns the list of arguments to start the recorder process.
@@ -63,18 +63,18 @@ def getRecorderArgs(status, displayId, audioSinkIndex, width, height, extensionl
outputFileName = extensionlessOutputFileName + extension
- ffmpegArgs = ffmpegCommon
- ffmpegArgs += ffmpegInputAudio
+ ffmpegArguments = ffmpegCommon
+ ffmpegArguments += ffmpegInputAudio
if status == RECORDING_STATUS_AUDIO_AND_VIDEO:
- ffmpegArgs += ffmpegInputVideo
+ ffmpegArguments += ffmpegInputVideo
- ffmpegArgs += ffmpegOutputAudio
+ ffmpegArguments += ffmpegOutputAudio
if status == RECORDING_STATUS_AUDIO_AND_VIDEO:
- ffmpegArgs += ffmpegOutputVideo
+ ffmpegArguments += ffmpegOutputVideo
- return ffmpegArgs + [outputFileName]
+ return ffmpegArguments + [outputFileName]
def newAudioSink(baseSinkName):
"""
@@ -246,12 +246,12 @@ class Service:
extensionlessFileName = f'{fullDirectory}/recording-{datetime.now().strftime("%Y%m%d-%H%M%S")}'
- recorderArgs = getRecorderArgs(self.status, self._display.new_display_var, audioSinkIndex, width, height, extensionlessFileName)
+ recorderArguments = getRecorderArguments(self.status, self._display.new_display_var, audioSinkIndex, width, height, extensionlessFileName)
- self._fileName = recorderArgs[-1]
+ self._fileName = recorderArguments[-1]
self._logger.debug("Starting recorder")
- self._process = subprocess.Popen(recorderArgs, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
+ self._process = subprocess.Popen(recorderArguments, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
# Log recorder output.
Thread(target=processLog, args=[f"{__name__}.recorder-{self.backend}-{self.token}", self._process.stdout], daemon=True).start()