|
|
|
@ -343,7 +343,7 @@ async function getInfo(url) {
|
|
|
|
|
|
|
|
|
|
|
|
getId("loadingWrapper").style.display = "none";
|
|
|
|
getId("loadingWrapper").style.display = "none";
|
|
|
|
getId("hidden").style.display = "inline-block";
|
|
|
|
getId("hidden").style.display = "inline-block";
|
|
|
|
getId("title").innerHTML = `<b>${i18n.__("Title ")}</b>: ` + title;
|
|
|
|
getId("title").innerHTML = `<b>${i18n.__("Title ")}</b>: ` + `<input class="title" id="titleName" type="text" value="${title}" onchange="renameTitle()">`;
|
|
|
|
|
|
|
|
|
|
|
|
let audioSize = 0;
|
|
|
|
let audioSize = 0;
|
|
|
|
let defaultVideoFormat = 0;
|
|
|
|
let defaultVideoFormat = 0;
|
|
|
|
@ -932,6 +932,7 @@ function download(
|
|
|
|
configTxt,
|
|
|
|
configTxt,
|
|
|
|
cookieArg,
|
|
|
|
cookieArg,
|
|
|
|
browser,
|
|
|
|
browser,
|
|
|
|
|
|
|
|
"--no-mtime",
|
|
|
|
`"${url}"`,
|
|
|
|
`"${url}"`,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
{ shell: true, detached: false },
|
|
|
|
{ shell: true, detached: false },
|
|
|
|
@ -961,6 +962,7 @@ function download(
|
|
|
|
browser,
|
|
|
|
browser,
|
|
|
|
configArg,
|
|
|
|
configArg,
|
|
|
|
configTxt,
|
|
|
|
configTxt,
|
|
|
|
|
|
|
|
"--no-mtime",
|
|
|
|
`"${url}"`,
|
|
|
|
`"${url}"`,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
{ shell: true, detached: false },
|
|
|
|
{ shell: true, detached: false },
|
|
|
|
@ -990,6 +992,7 @@ function download(
|
|
|
|
browser,
|
|
|
|
browser,
|
|
|
|
configArg,
|
|
|
|
configArg,
|
|
|
|
configTxt,
|
|
|
|
configTxt,
|
|
|
|
|
|
|
|
"--no-mtime",
|
|
|
|
`"${url}"`,
|
|
|
|
`"${url}"`,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
{ shell: true, detached: false },
|
|
|
|
{ shell: true, detached: false },
|
|
|
|
@ -1127,6 +1130,13 @@ function showItem(location, filename) {
|
|
|
|
shell.showItemInFolder(`${path.join(location, filename)}`);
|
|
|
|
shell.showItemInFolder(`${path.join(location, filename)}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Rename title
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function renameTitle(){
|
|
|
|
|
|
|
|
title = getId("titleName").value
|
|
|
|
|
|
|
|
console.log(title)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Opening windows
|
|
|
|
// Opening windows
|
|
|
|
function closeMenu() {
|
|
|
|
function closeMenu() {
|
|
|
|
getId("menuIcon").style.transform = "rotate(0deg)";
|
|
|
|
getId("menuIcon").style.transform = "rotate(0deg)";
|
|
|
|
|