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());