Custom args and global custom args now use double comma as a delimiter. This should allow file names with spaces when using custom args (global and not)

This commit is contained in:
Tzahi12345
2020-05-03 21:05:56 -04:00
parent 1861011fb0
commit 8e5db3e9d1
3 changed files with 9 additions and 6 deletions

View File

@@ -864,7 +864,7 @@ export class MainComponent implements OnInit {
const base_string_array = ['youtube-dl', this.url];
if (customArgsExists) {
this.simulatedOutput = base_string_array.join(' ') + ' ' + this.customArgs;
this.simulatedOutput = base_string_array.join(' ') + ' ' + this.customArgs.split(',,').join(' ');
return this.simulatedOutput;
}
@@ -924,7 +924,7 @@ export class MainComponent implements OnInit {
}
if (globalArgsExists) {
full_string_array = full_string_array.concat(this.globalCustomArgs.split(' '));
full_string_array = full_string_array.concat(this.globalCustomArgs.split(',,'));
}
this.simulatedOutput = full_string_array.join(' ');