revert april fools

This commit is contained in:
wukko 2023-04-02 21:53:23 +06:00
parent 8a214cf2a7
commit 35e89f30a4
2 changed files with 2 additions and 7 deletions

View file

@ -111,8 +111,8 @@ if (fs.existsSync('./.env') && process.env.selfURL && process.env.streamSalt &&
res.status(j.status).json(j.body); res.status(j.status).json(j.body);
return; return;
} catch (e) { } catch (e) {
res.status(500).json({ 'status': 'error', 'text': loc(languageCode(req), 'ErrorCantProcess') }); res.destroy();
return; return
} }
}); });

View file

@ -354,11 +354,6 @@ async function download(url) {
if (url.includes("youtube.com/") || url.includes("/youtu.be/")) req.vCodec = sGet("vCodec").slice(0, 4); if (url.includes("youtube.com/") || url.includes("/youtu.be/")) req.vCodec = sGet("vCodec").slice(0, 4);
if ((url.includes("tiktok.com/") || url.includes("douyin.com/")) && sGet("disableTikTokWatermark") === "true") req.isNoTTWatermark = true; if ((url.includes("tiktok.com/") || url.includes("douyin.com/")) && sGet("disableTikTokWatermark") === "true") req.isNoTTWatermark = true;
} }
if (url.includes("https://pornhub.com") || url.includes("https://www.pornhub.com")) {
req.url = "https://www.youtube.com/watch?v=yPYZpwSpKmA";
req.vQuality = "720";
req.vCodec = "h264"
}
await fetch('/api/json', { method: "POST", body: JSON.stringify(req), headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' } }).then(async (r) => { await fetch('/api/json', { method: "POST", body: JSON.stringify(req), headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' } }).then(async (r) => {
let j = await r.json(); let j = await r.json();
if (j.status !== "error" && j.status !== "rate-limit") { if (j.status !== "error" && j.status !== "rate-limit") {