Fixes
This commit is contained in:
parent
bebd4ed57d
commit
b696ffef12
@ -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 .",
|
||||||
|
@ -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 = " ".repeat(
|
const spaceAfterQuality = " ".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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user