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