Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew committed Mar 2, 2024
1 parent bebd4ed commit b696ffe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"yt-dlp-wrap-plus": "^2.3.18"
},
"name": "ytdownloader",
"version": "3.17.2",
"version": "3.17.3",
"main": "main.js",
"scripts": {
"start": "electron .",
Expand Down
9 changes: 3 additions & 6 deletions src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ async function getInfo(url) {
format.height <= preferredVideoQuality &&
format.height >= defaultVideoFormat &&
(format.video_ext !== "none" &&
format.acodec === "none" &&
!(
format.video_ext === "mp4" &&
format.vcodec &&
Expand Down Expand Up @@ -470,7 +469,6 @@ async function getInfo(url) {
format.vcodec.split(".")[0] === preferredVideoCodec &&
!selected &&
(format.video_ext !== "none" &&
format.acodec === "none" &&
!(
format.video_ext === "mp4" &&
format.vcodec &&
Expand Down Expand Up @@ -503,7 +501,6 @@ async function getInfo(url) {

if (
(format.video_ext !== "none" &&
format.acodec === "none" &&
!(
format.video_ext === "mp4" &&
format.vcodec &&
Expand Down Expand Up @@ -552,7 +549,7 @@ async function getInfo(url) {
const spaceAfterQuality = "&#160".repeat(
quality.length <= 8 && 8 - quality.length > 0
? 8 - quality.length
: quality.length + 1
: 1
);

// Extension
Expand All @@ -570,9 +567,9 @@ async function getInfo(url) {
"| " +
extension.padEnd(5, "\xa0") +
"| " +
vcodec +
spaceAfterVcodec +
(vcodec ? vcodec + spaceAfterVcodec : '') +
size +
(format.acodec !== "none" ? " 🔈" : "") +
"</option>";
getId("videoFormatSelect").innerHTML += element;
}
Expand Down

0 comments on commit b696ffe

Please sign in to comment.