Some fixes
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user