From 4375b5e124daf0778e606ffcd5ab7a7e474c7d49 Mon Sep 17 00:00:00 2001 From: Joris Bertomeu Date: Tue, 26 Aug 2025 11:05:12 +0200 Subject: [PATCH] Some fixes --- src/app/app.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index a3e6436..14852e4 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -244,7 +244,6 @@ export class AppComponent implements OnInit { mp4Filename: this.loadForm.get('mp4Filename')?.value, wantedRemux: this.processRemux }); - console.log(data); this.videoProcessingService.startProcess(data).subscribe({ next: (response) => { // Nettoyer les paramètres URL après avoir démarré le processus @@ -310,7 +309,11 @@ export class AppComponent implements OnInit { } parseKeys(keysString: string): { key: string, value: string }[] { - return keysString.split('\n').map(line => line.trim()) + if (keysString == null || keysString.length === 0) + return []; + if (Array.isArray(keysString)) + return keysString; + return keysString?.split('\n').map(line => line.trim()) .filter(line => line.includes(':')) .map(line => { const [key, value] = line.split(':').map(part => part.trim());