|
|
|
@ -259,6 +259,10 @@ getId("pasteUrl").addEventListener("click", () => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// Getting video info
|
|
|
|
// Getting video info
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param {string} url
|
|
|
|
|
|
|
|
*/
|
|
|
|
async function getInfo(url) {
|
|
|
|
async function getInfo(url) {
|
|
|
|
audioExtensionList = [];
|
|
|
|
audioExtensionList = [];
|
|
|
|
let selected = false;
|
|
|
|
let selected = false;
|
|
|
|
@ -309,6 +313,9 @@ async function getInfo(url) {
|
|
|
|
|
|
|
|
|
|
|
|
let info = "";
|
|
|
|
let info = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Twitter/X compatibility
|
|
|
|
|
|
|
|
url = url.replace("//x.com/", "//twitter.com/")
|
|
|
|
|
|
|
|
|
|
|
|
const infoProcess = cp.spawn(
|
|
|
|
const infoProcess = cp.spawn(
|
|
|
|
`"${ytDlp}"`,
|
|
|
|
`"${ytDlp}"`,
|
|
|
|
[
|
|
|
|
[
|
|
|
|
|