format in custom args for subscriptions now overrides default format (allows for users to specify custom formats for subs)

pull/136/head
Isaac Grynsztein 5 years ago
parent 20f162d794
commit 32da9dd9dd

@ -289,6 +289,11 @@ async function getVideosForSub(sub, user_uid = null) {
if (sub.custom_args) {
customArgsArray = sub.custom_args.split(',,');
if (customArgsArray.indexOf('-f') !== -1) {
// if custom args has a custom quality, replce the original quality with that of custom args
const original_output_index = downloadConfig.indexOf('-f');
downloadConfig.splice(original_output_index, 2);
}
downloadConfig.push(...customArgsArray);
}

Loading…
Cancel
Save