Spaces:
Paused
Paused
πππππππ πππππππ β‘ commited on
Update dl-xdown.js
Browse files- plugins/dl-xdown.js +4 -3
plugins/dl-xdown.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
const axios = require('axios');
|
| 3 |
const fs = require('fs');
|
| 4 |
const path = require('path');
|
|
@@ -20,6 +20,7 @@ const fetchJson = async (url) => {
|
|
| 20 |
|
| 21 |
cmd({
|
| 22 |
pattern: "xdownload",
|
|
|
|
| 23 |
react: "π₯",
|
| 24 |
desc: "Download videos from Xvideos.",
|
| 25 |
category: "utility",
|
|
@@ -63,7 +64,7 @@ cmd({
|
|
| 63 |
console.log(`Subzero downloaded video successfully: ${videoPath}`);
|
| 64 |
|
| 65 |
// Send the video to the user
|
| 66 |
-
await conn.sendMessage(m.chat, { video: fs.readFileSync(videoPath), caption: `π₯ *Title:* ${videoData.title}\nπ *Views:* ${videoData.views}\nπ *Likes:* ${videoData.likes}` });
|
| 67 |
|
| 68 |
// Clean up the downloaded file
|
| 69 |
fs.unlinkSync(videoPath);
|
|
@@ -74,4 +75,4 @@ cmd({
|
|
| 74 |
return reply("β An error occurred while processing your request. Please try again.");
|
| 75 |
}
|
| 76 |
});
|
| 77 |
-
|
|
|
|
| 1 |
+
const { cmd } = require('../command');
|
| 2 |
const axios = require('axios');
|
| 3 |
const fs = require('fs');
|
| 4 |
const path = require('path');
|
|
|
|
| 20 |
|
| 21 |
cmd({
|
| 22 |
pattern: "xdownload",
|
| 23 |
+
alias: ["xnxxdl","xxx"],
|
| 24 |
react: "π₯",
|
| 25 |
desc: "Download videos from Xvideos.",
|
| 26 |
category: "utility",
|
|
|
|
| 64 |
console.log(`Subzero downloaded video successfully: ${videoPath}`);
|
| 65 |
|
| 66 |
// Send the video to the user
|
| 67 |
+
await conn.sendMessage(m.chat, { video: fs.readFileSync(videoPath), caption: `*\`SUBZERO MD XVIDEOS DL\` \n\nπ₯ *Title:* ${videoData.title}\nπ *Views:* ${videoData.views}\nπ *Likes:* ${videoData.likes}` });
|
| 68 |
|
| 69 |
// Clean up the downloaded file
|
| 70 |
fs.unlinkSync(videoPath);
|
|
|
|
| 75 |
return reply("β An error occurred while processing your request. Please try again.");
|
| 76 |
}
|
| 77 |
});
|
| 78 |
+
|