Cloner / plugins /dl-xvideo.js
𝗗𝗔π—₯π—₯π—˜π—Ÿπ—Ÿ π— π—¨π—–π—›π—˜π—₯π—œ ⚑
Create dl-xvideo.js
44c02a0 unverified
raw
history blame
2.21 kB
// XVIDEO DOWNLOAD COMMAND
const { cmd } = require('../command')
const { fetchJson } = require('../lib/functions')
const apilink = 'https://www.dark-yasiya-api.site/' // API LINK ( DO NOT CHANGE THIS!! )
cmd({
pattern: "xvideo",
alias: ["xvdl","xvdown"],
react: "πŸ”ž",
desc: "Download xvideo.com porn video",
category: "download",
use: '.xvideo < text >',
filename: __filename
},
async(conn, mek, m,{from, quoted, reply, q }) => {
try{
if(!q) return await reply("π–―π—…π–Ύπ–Ίπ—Œπ–Ύ 𝖦𝗂𝗏𝖾 𝗆𝖾 π–₯𝖾𝗐 π–Άπ—ˆπ—‹π–½ !")
const xv_list = await fetchJson(`${apilink}/search/xvideo?text=${q}`)
if(xv_list.result.length < 0) return await reply("Not results found !")
const xv_info = await fetchJson(`${apilink}/download/xvideo?url=${xv_list.result[0].url}`)
// FIRST VIDEO
const msg = `
*δΉ‚ SUBZERO XVIDEO DOWNLOADER* πŸ”ž
β€’ *𝖳𝗂𝗍𝗅𝖾* - ${xv_info.result.title}
β€’ *π–΅π—‚π–Ύπ—π—Œ* - ${xv_info.result.views}
β€’ *𝖫𝗂𝗄𝖾* - ${xv_info.result.like}
β€’ *π–£π–Ύπ—Œπ—…π—‚π—„π–Ύ* - ${xv_info.result.deslike}
β€’ *𝖲𝗂𝗓𝖾* - ${xv_info.result.size}
> *Powered By SubZero*`
// Sending the image with caption
const sentMsg = await conn.sendMessage(from, {
text: msg,
contextInfo: {
forwardingScore: 999,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterName: 'SUBZERO MD',
newsletterJid: "120363304325601080@newsletter",
},
externalAdReply: {
title: `SubZero Xvideo Downloader`,
body: `Can't Find The Information. You Can Try Another Way. Error Code 4043`,
thumbnailUrl: xv_info.result.image,
sourceUrl: ``,
mediaType: 1,
renderLargerThumbnail: true
}
}
}, { quoted: mek });
// SEND VIDEO
await conn.sendMessage(from, { document: { url: xv_info.result.dl_link }, mimetype: "video/mp4", fileName: xv_info.result.title, caption: xv_info.result.title }, { quoted: mek });
} catch (error) {
console.log(error)
reply(error)
}
})