++ fix available resolution

This commit is contained in:
2026-01-10 14:40:37 +01:00
parent cc8bb74657
commit 0b6ce3134b
2 changed files with 9 additions and 0 deletions

View File

@@ -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) : '?';