Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pytranscoder/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ def run_remote(self, sshcli: str, user: str, ip: str, params: list, event_callba
def execute_and_monitor(self, params, event_callback, monitor) -> Optional[int]:
self.last_command = ' '.join([self.path, *params])
with subprocess.Popen(
# [self.path, *params],
self.last_command,
[self.path, *params],
#self.last_command,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
universal_newlines=True,
shell=True) as p:
shell=False) as p:

for stats in monitor(p):
if event_callback is not None:
Expand Down
2 changes: 1 addition & 1 deletion pytranscoder/transcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def start():
if cluster is None:
files.extend([(f, profile or template, mixins) for f in tmpfiles])
else:
files.extend([(f, cluster, profile or template) for f in tmpfiles])
files.extend([(f, cluster, profile or template, mixins) for f in tmpfiles])

if len(files) == 0:
print(crayons.yellow(f'Nothing to do'))
Expand Down