𝗗𝗔π—₯π—₯π—˜π—Ÿπ—Ÿ π— π—¨π—–π—›π—˜π—₯π—œ ⚑ commited on
Commit
44c02a0
Β·
unverified Β·
1 Parent(s): 8897d54

Create dl-xvideo.js

Browse files
Files changed (1) hide show
  1. 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
+ })