++ fix available resolution
This commit is contained in:
@@ -68,6 +68,11 @@ async function fetchInfo() {
|
||||
return `${f.ext} ${abr}${size}`;
|
||||
});
|
||||
|
||||
// Auto-select highest resolution (first video format)
|
||||
if (lastFormats.video.length > 0) {
|
||||
videoSelect.value = lastFormats.video[0].id;
|
||||
}
|
||||
|
||||
audioExt.disabled = false;
|
||||
|
||||
const minutes = data.duration ? Math.round(data.duration / 60) : '?';
|
||||
|
||||
Reference in New Issue
Block a user