Auto type for playlist

pull/136/head
Andrew 3 years ago
parent 875c77f29e
commit c8aecac40f

@ -89,6 +89,7 @@
<div id="typeSelectBox">
<label>Select video type</label>
<select id="videoTypeSelect">
<option value="auto">Auto</option>
<option value="mp4">Mp4</option>
<option value="webm">WebM</option>
</select>

@ -117,10 +117,12 @@ function download(type) {
format = "";
} else {
if (videoType === "mp4"){
format = `-f "${formatId}+m4a/mp4[height=${quality}]+m4a/bv*[height<=${quality}]+ba/best"`;
format = `-f "${formatId}+m4a/mp4[height=${quality}]+m4a/bv*[height<=${quality}]+ba/best[height<=${quality}]"`;
}
else{
format = `-f "webm[height<=${quality}]+opus/bv*[height<=${quality}]+ba/${formatId}+m4a/mp4[height=${quality}]+m4a/best"`;
else if (videoType === "webm"){
format = `-f "webm[height<=${quality}]+opus/bv*[height<=${quality}]+ba/${formatId}+m4a/mp4[height=${quality}]+m4a/best[height<=${quality}]"`;
} else {
format = `-f "bv*[height=${quality}]+ba/best[height=${quality}]/best[height<=${quality}]"`
}
}
} else {

@ -98,5 +98,6 @@
"Select Quality":"Select Quality",
"Disable auto updates":"Disable auto updates",
"ultralow":"ultralow",
"Close app when download finishes":"Close app when download finishes"
"Close app when download finishes":"Close app when download finishes",
"Auto":"Auto"
}

Loading…
Cancel
Save