Skip to content

Commit 2c1966a

Browse files
authored
Fix play
1 parent a3bfc3a commit 2c1966a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

β€Žplugins/downloader-play.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import axios from 'axios';
33
import { youtubedl, youtubedlv2 } from '@bochilteam/scraper';
44
import fs from "fs";
55
import yts from 'yt-search';
6-
import ytmp33 from '../src/libraries/ytmp33.js';
7-
import ytmp44 from '../src/libraries/ytmp44.js';
6+
//import ytmp33 from '../src/libraries/ytmp33.js';
7+
//import ytmp44 from '../src/libraries/ytmp44.js';
88
import ytdl from 'ytdl-core';
99

1010
let limit1 = 100;
@@ -35,7 +35,7 @@ const handler = async (m, { conn, command, args, text, usedPrefix }) => {
3535
conn.sendMessage(m.chat, { image: { url: yt_play[0].thumbnail }, caption: texto1 }, { quoted: m });
3636

3737
if (['play', 'play3', 'playdoc'].includes(command)) {
38-
try {
38+
/*try {
3939
const { status, resultados, error } = await ytmp33(yt_play[0].url);
4040
if (!status) throw new Error(error);
4141
@@ -59,7 +59,7 @@ const handler = async (m, { conn, command, args, text, usedPrefix }) => {
5959
return;
6060
}
6161
} catch (error) {
62-
console.log('Fallo el 1: ' + error)
62+
console.log('Fallo el 1: ' + error)*/
6363
try {
6464
const audio = `${global.MyApiRestBaseUrl}/api/v2/ytmp3?url=${yt_play[0].url}&apikey=${global.MyApiRestApikey}`;
6565
const ttl = await yt_play[0].title;
@@ -105,12 +105,12 @@ const handler = async (m, { conn, command, args, text, usedPrefix }) => {
105105
} catch {
106106
throw tradutor.texto4;
107107
}
108-
}
108+
//}
109109
}
110110
}
111111

112112
if (['play2', 'play4', 'playdoc2'].includes(command)) {
113-
try {
113+
/*try {
114114
const { status, resultados, error } = await ytmp44(yt_play[0].url);
115115
if (!status) throw new Error(error);
116116
@@ -133,7 +133,7 @@ const handler = async (m, { conn, command, args, text, usedPrefix }) => {
133133
await conn.sendMessage(m.chat, { video: buff_vid, mimetype: 'video/mp4', fileName: ttl2 + `.mp4` }, { quoted: m });
134134
return;
135135
}
136-
} catch (error) {
136+
} catch (error) {*/
137137
try {
138138
const video = `${global.MyApiRestBaseUrl}/api/v2/ytmp4?url=${yt_play[0].url}&apikey=${global.MyApiRestApikey}`;
139139
const ttl2 = await yt_play[0].title;
@@ -179,7 +179,7 @@ const handler = async (m, { conn, command, args, text, usedPrefix }) => {
179179
} catch {
180180
throw tradutor.texto6;
181181
}
182-
}
182+
// }
183183
}
184184
}
185185
};

0 commit comments

Comments
Β (0)