Twitter/X compatibility

pull/218/head
aandrew-me 1 year ago
parent 5189ae8c8d
commit 1fd091a21e

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

Loading…
Cancel
Save