Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Don't display "null%" progress

Chocobozzz8f35e7692841
diff --git a/apps/peertube-runner/src/shared/ipc/ipc-client.ts b/apps/peertube-runner/src/shared/ipc/ipc-client.ts
index 7f7215dc82..185b4ae495 100644
--- a/apps/peertube-runner/src/shared/ipc/ipc-client.ts
+++ b/apps/peertube-runner/src/shared/ipc/ipc-client.ts
@@ -105,7 +105,17 @@ export class IPCClient {
})
for (const { serverUrl, job } of data.processingJobs) {
- const row = [ serverUrl, job.type, job.startedAt.toLocaleString(), `${job.progress}%` ]
+ const row = [
+ serverUrl,
+ job.type,
+
+ job.startedAt?.toLocaleString(),
+
+ job.progress !== undefined && job.progress !== null
+ ? `${job.progress}%`
+ : ''
+ ]
+
if (options.includePayload) row.push(JSON.stringify(job.payload, undefined, 2))
table.push(row)