Spaces:
Paused
Paused
πππ₯π₯πππ π π¨ππππ₯π β‘
commited on
Create dl-xvideo.js
Browse files- plugins/dl-xvideo.js +79 -0
plugins/dl-xvideo.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// XVIDEO DOWNLOAD COMMAND
|
| 2 |
+
|
| 3 |
+
const { cmd } = require('../command')
|
| 4 |
+
const { fetchJson } = require('../lib/functions')
|
| 5 |
+
|
| 6 |
+
const apilink = 'https://www.dark-yasiya-api.site/' // API LINK ( DO NOT CHANGE THIS!! )
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
cmd({
|
| 11 |
+
pattern: "xvideo",
|
| 12 |
+
alias: ["xvdl","xvdown"],
|
| 13 |
+
react: "π",
|
| 14 |
+
desc: "Download xvideo.com porn video",
|
| 15 |
+
category: "download",
|
| 16 |
+
use: '.xvideo < text >',
|
| 17 |
+
filename: __filename
|
| 18 |
+
},
|
| 19 |
+
async(conn, mek, m,{from, quoted, reply, q }) => {
|
| 20 |
+
try{
|
| 21 |
+
|
| 22 |
+
if(!q) return await reply("π―π
πΎπΊππΎ π¦πππΎ ππΎ π₯πΎπ πΆπππ½ !")
|
| 23 |
+
|
| 24 |
+
const xv_list = await fetchJson(`${apilink}/search/xvideo?text=${q}`)
|
| 25 |
+
if(xv_list.result.length < 0) return await reply("Not results found !")
|
| 26 |
+
|
| 27 |
+
const xv_info = await fetchJson(`${apilink}/download/xvideo?url=${xv_list.result[0].url}`)
|
| 28 |
+
|
| 29 |
+
// FIRST VIDEO
|
| 30 |
+
|
| 31 |
+
const msg = `
|
| 32 |
+
*δΉ SUBZERO XVIDEO DOWNLOADER* π
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
β’ *π³πππ
πΎ* - ${xv_info.result.title}
|
| 36 |
+
|
| 37 |
+
β’ *π΅ππΎππ* - ${xv_info.result.views}
|
| 38 |
+
|
| 39 |
+
β’ *π«πππΎ* - ${xv_info.result.like}
|
| 40 |
+
|
| 41 |
+
β’ *π£πΎππ
πππΎ* - ${xv_info.result.deslike}
|
| 42 |
+
|
| 43 |
+
β’ *π²πππΎ* - ${xv_info.result.size}
|
| 44 |
+
|
| 45 |
+
> *Powered By SubZero*`
|
| 46 |
+
|
| 47 |
+
// Sending the image with caption
|
| 48 |
+
const sentMsg = await conn.sendMessage(from, {
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
text: msg,
|
| 52 |
+
contextInfo: {
|
| 53 |
+
|
| 54 |
+
forwardingScore: 999,
|
| 55 |
+
isForwarded: true,
|
| 56 |
+
forwardedNewsletterMessageInfo: {
|
| 57 |
+
newsletterName: 'SUBZERO MD',
|
| 58 |
+
newsletterJid: "120363304325601080@newsletter",
|
| 59 |
+
},
|
| 60 |
+
externalAdReply: {
|
| 61 |
+
title: `SubZero Xvideo Downloader`,
|
| 62 |
+
body: `Can't Find The Information. You Can Try Another Way. Error Code 4043`,
|
| 63 |
+
thumbnailUrl: xv_info.result.image,
|
| 64 |
+
sourceUrl: ``,
|
| 65 |
+
mediaType: 1,
|
| 66 |
+
renderLargerThumbnail: true
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
}, { quoted: mek });
|
| 70 |
+
|
| 71 |
+
// SEND VIDEO
|
| 72 |
+
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 });
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
} catch (error) {
|
| 76 |
+
console.log(error)
|
| 77 |
+
reply(error)
|
| 78 |
+
}
|
| 79 |
+
})
|