Some fixes
All checks were successful
ci / Image build (push) Successful in 2m8s
ci / Deployment (push) Successful in 5s

This commit is contained in:
Joris Bertomeu
2025-08-26 11:05:12 +02:00
parent 86d89e7d1c
commit 4375b5e124

View File

@@ -244,7 +244,6 @@ export class AppComponent implements OnInit {
mp4Filename: this.loadForm.get('mp4Filename')?.value, mp4Filename: this.loadForm.get('mp4Filename')?.value,
wantedRemux: this.processRemux wantedRemux: this.processRemux
}); });
console.log(data);
this.videoProcessingService.startProcess(data).subscribe({ this.videoProcessingService.startProcess(data).subscribe({
next: (response) => { next: (response) => {
// Nettoyer les paramètres URL après avoir démarré le processus // 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 }[] { 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(':')) .filter(line => line.includes(':'))
.map(line => { .map(line => {
const [key, value] = line.split(':').map(part => part.trim()); const [key, value] = line.split(':').map(part => part.trim());