mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-16 17:31:28 +03:00
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:
@@ -1479,7 +1479,7 @@ async function generateArgs(url, type, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (customArgs) {
|
if (customArgs) {
|
||||||
downloadConfig = customArgs.split(' ');
|
downloadConfig = customArgs.split(',,');
|
||||||
} else {
|
} else {
|
||||||
if (customQualityConfiguration) {
|
if (customQualityConfiguration) {
|
||||||
qualityPath = `-f ${customQualityConfiguration}`;
|
qualityPath = `-f ${customQualityConfiguration}`;
|
||||||
@@ -1535,7 +1535,7 @@ async function generateArgs(url, type, options) {
|
|||||||
|
|
||||||
if (globalArgs && globalArgs !== '') {
|
if (globalArgs && globalArgs !== '') {
|
||||||
// adds global args
|
// adds global args
|
||||||
downloadConfig = downloadConfig.concat(globalArgs.split(' '));
|
downloadConfig = downloadConfig.concat(globalArgs.split(',,'));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,12 +72,15 @@ export class ArgModifierDialogComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addArg() {
|
addArg() {
|
||||||
|
if (!this.modified_args) {
|
||||||
|
this.modified_args = '';
|
||||||
|
}
|
||||||
// adds space
|
// adds space
|
||||||
if (this.modified_args !== '') {
|
if (this.modified_args !== '') {
|
||||||
this.modified_args += ' ';
|
this.modified_args += ',,';
|
||||||
}
|
}
|
||||||
|
|
||||||
this.modified_args += this.stateCtrl.value + ' ' + (this.secondArgEnabled ? this.secondArg : '');
|
this.modified_args += this.stateCtrl.value + (this.secondArgEnabled ? ',,' + this.secondArg : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
canAddArg() {
|
canAddArg() {
|
||||||
|
|||||||
@@ -864,7 +864,7 @@ export class MainComponent implements OnInit {
|
|||||||
const base_string_array = ['youtube-dl', this.url];
|
const base_string_array = ['youtube-dl', this.url];
|
||||||
|
|
||||||
if (customArgsExists) {
|
if (customArgsExists) {
|
||||||
this.simulatedOutput = base_string_array.join(' ') + ' ' + this.customArgs;
|
this.simulatedOutput = base_string_array.join(' ') + ' ' + this.customArgs.split(',,').join(' ');
|
||||||
return this.simulatedOutput;
|
return this.simulatedOutput;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -924,7 +924,7 @@ export class MainComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (globalArgsExists) {
|
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(' ');
|
this.simulatedOutput = full_string_array.join(' ');
|
||||||
|
|||||||
Reference in New Issue
Block a user