File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -94,18 +94,16 @@ def handle_quoted_arguments(command_args):
94
94
return rffmpeg_command
95
95
96
96
if __name__ == '__main__' :
97
+ script_name = os .path .basename (sys .argv [0 ])
97
98
# Get the command line arguments
98
99
command_args = sys .argv [1 :]
99
100
100
101
# Process and reassemble the arguments
101
102
rffmpeg_command = handle_quoted_arguments (command_args )
102
103
103
- # Print the constructed command for debugging
104
- #print(rffmpeg_command)
105
-
104
+ command = [script_name ] + rffmpeg_command
106
105
# Convert the list to a single command string
107
- command_str = sys .argv [0 ].join (rffmpeg_command )
108
- #print(command_str)
106
+ command_str = ' ' .join (command )
109
107
110
108
# Run the command
111
109
asyncio .run (run_command (command_str , USE_SSL ))
You can’t perform that action at this time.
0 commit comments