This commit is contained in:
Andrew 2024-03-02 10:33:14 +03:00
parent bebd4ed57d
commit b696ffef12
2 changed files with 4 additions and 7 deletions

View File

@ -4,7 +4,7 @@
"yt-dlp-wrap-plus": "^2.3.18" "yt-dlp-wrap-plus": "^2.3.18"
}, },
"name": "ytdownloader", "name": "ytdownloader",
"version": "3.17.2", "version": "3.17.3",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"start": "electron .", "start": "electron .",

View File

@ -401,7 +401,6 @@ async function getInfo(url) {
format.height <= preferredVideoQuality && format.height <= preferredVideoQuality &&
format.height >= defaultVideoFormat && format.height >= defaultVideoFormat &&
(format.video_ext !== "none" && (format.video_ext !== "none" &&
format.acodec === "none" &&
!( !(
format.video_ext === "mp4" && format.video_ext === "mp4" &&
format.vcodec && format.vcodec &&
@ -470,7 +469,6 @@ async function getInfo(url) {
format.vcodec.split(".")[0] === preferredVideoCodec && format.vcodec.split(".")[0] === preferredVideoCodec &&
!selected && !selected &&
(format.video_ext !== "none" && (format.video_ext !== "none" &&
format.acodec === "none" &&
!( !(
format.video_ext === "mp4" && format.video_ext === "mp4" &&
format.vcodec && format.vcodec &&
@ -503,7 +501,6 @@ async function getInfo(url) {
if ( if (
(format.video_ext !== "none" && (format.video_ext !== "none" &&
format.acodec === "none" &&
!( !(
format.video_ext === "mp4" && format.video_ext === "mp4" &&
format.vcodec && format.vcodec &&
@ -552,7 +549,7 @@ async function getInfo(url) {
const spaceAfterQuality = "&#160".repeat( const spaceAfterQuality = "&#160".repeat(
quality.length <= 8 && 8 - quality.length > 0 quality.length <= 8 && 8 - quality.length > 0
? 8 - quality.length ? 8 - quality.length
: quality.length + 1 : 1
); );
// Extension // Extension
@ -570,9 +567,9 @@ async function getInfo(url) {
"| " + "| " +
extension.padEnd(5, "\xa0") + extension.padEnd(5, "\xa0") +
"| " + "| " +
vcodec + (vcodec ? vcodec + spaceAfterVcodec : '') +
spaceAfterVcodec +
size + size +
(format.acodec !== "none" ? " 🔈" : "") +
"</option>"; "</option>";
getId("videoFormatSelect").innerHTML += element; getId("videoFormatSelect").innerHTML += element;
} }